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:
parent
39fceeb18b
commit
4a7088a1c1
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue