changeset 155:fbe5b5416862

[fix] Bug ID 1729026: The syntax highlighting was not correct after changing the lexer. The text needs to be set again. Why ever!? QScintilla Problem? git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@358 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Fri, 01 Jun 2007 10:10:11 +0000
parents fb02fcbcb500
children 7e6d43bb7043
files src/highlighter.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/highlighter.cpp	Thu May 31 18:14:16 2007 +0000
+++ b/src/highlighter.cpp	Fri Jun 01 10:10:11 2007 +0000
@@ -109,6 +109,8 @@
 void Highlighter::highlighterChanged(QAction* highlighterAction) {
 	QString highlighterName = highlighterAction->text();
     setLexerForExtension( mapHighlighternameToExtension[highlighterName].first() );
+    // Need to do this "text update" to update the syntax highlighting. Otherwise highlighting is wrong.
+    parent->setText( parent->text() );
 }