summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-03-02 14:34:29 (GMT)
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-03-02 14:44:43 (GMT)
commit115c3214161152c99f488fd4cce39b15b40b3600 (patch)
tree0feac173a3e527db691feeddfef3d4630cfdc9f5 /src
parentb8a408cdbe49c1a1a18842025664245e0c6785cb (diff)
downloadQt-115c3214161152c99f488fd4cce39b15b40b3600.zip
Qt-115c3214161152c99f488fd4cce39b15b40b3600.tar.gz
Qt-115c3214161152c99f488fd4cce39b15b40b3600.tar.bz2
Fixed a regression in the syntax highlighter
Caused by merging an old version of merge request 481. This patch updates it to the latest version. Merge-request: 481 Reviewed-by: Ritt Konstantin <ritt.ks@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/text/qsyntaxhighlighter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/text/qsyntaxhighlighter.cpp b/src/gui/text/qsyntaxhighlighter.cpp
index 28af5bb..e594b7e 100644
--- a/src/gui/text/qsyntaxhighlighter.cpp
+++ b/src/gui/text/qsyntaxhighlighter.cpp
@@ -115,6 +115,9 @@ void QSyntaxHighlighterPrivate::applyFormatChanges()
formatsChanged = true;
}
}
+ } else if (!ranges.isEmpty()) {
+ ranges.clear();
+ formatsChanged = true;
}
QTextCharFormat emptyFormat;