ui: Fixed scope annotations were highlighted with selection when only one was active

This commit is contained in:
Eberhard Graether
2015-06-01 22:41:27 +02:00
parent 20ce168712
commit 637a91088f
+1 -1
View File
@@ -437,7 +437,7 @@ void QtCodeArea::annotateText()
} }
} }
if (!annotation.isScope || (isActive && ids.size() == 1)) if (!annotation.isScope || (isActive && ids.size() == 1 && scopeAnnotation.startLine == scopeAnnotation.endLine))
{ {
extraSelections.append(selection); extraSelections.append(selection);
} }