From 637a91088f823cd2b08fcf05aebd23fbf40e2f88 Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Mon, 1 Jun 2015 22:41:27 +0200 Subject: [PATCH] ui: Fixed scope annotations were highlighted with selection when only one was active --- src/app/qt/element/QtCodeArea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/qt/element/QtCodeArea.cpp b/src/app/qt/element/QtCodeArea.cpp index 41097dc1..55de5c1a 100644 --- a/src/app/qt/element/QtCodeArea.cpp +++ b/src/app/qt/element/QtCodeArea.cpp @@ -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); }