1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-14 03:35:37 +02:00

Bug 515430: Prevent assertion by checking for quick fixable set

Change-Id: Iea8ac8354b104cb272457b78d2bf1304bd69e065
This commit is contained in:
Jonah Graham 2017-04-19 11:26:12 +01:00 committed by Gerrit Code Review @ Eclipse.org
parent 39fceeb18b
commit 4a7088a1c1

View file

@ -546,7 +546,8 @@ public class CDocumentProvider extends TextFileDocumentProvider {
private void setOverlay(Object value, ProblemAnnotation problemAnnotation) {
if (value instanceof CMarkerAnnotation) {
CMarkerAnnotation annotation= (CMarkerAnnotation) value;
if (annotation.isProblem() && !annotation.isQuickFixable()) {
if (annotation.isProblem()
&& (!annotation.isQuickFixableStateSet() || !annotation.isQuickFixable())) {
annotation.setOverlay(problemAnnotation);
fPreviouslyOverlaid.remove(annotation);
fCurrentlyOverlaid.add(annotation);