Author: deejay1                      Date: Sun Mar 15 13:48:35 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix freeze with Qt 4.5 (KDE #187219)

---- Files affected:
SOURCES:
   kde4-kdesdk-lokalize-freeze.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/kde4-kdesdk-lokalize-freeze.patch
diff -u /dev/null SOURCES/kde4-kdesdk-lokalize-freeze.patch:1.1
--- /dev/null   Sun Mar 15 14:48:35 2009
+++ SOURCES/kde4-kdesdk-lokalize-freeze.patch   Sun Mar 15 14:48:29 2009
@@ -0,0 +1,21 @@
+Index: src/syntaxhighlighter.cpp
+===================================================================
+--- lokalize/src/syntaxhighlighter.cpp (wersja 939633)
++++ lokalize/src/syntaxhighlighter.cpp (kopia robocza)
+@@ -166,14 +166,14 @@
+     foreach (const HighlightingRule &rule, highlightingRules)
+     {
+         QRegExp expression(rule.pattern);
+-        int index = text.indexOf(expression);
++        int index = expression.indexIn(text);
+         while (index >= 0)
+         {
+             int length = expression.matchedLength();
+             QTextCharFormat f=rule.format;
+             f.setFontItalic(!m_approved);
+             setFormat(index, length, f);
+-            index = text.indexOf(expression, index + length);
++            index = expression.indexIn(text, index + length);
+         }
+     }
+ 
================================================================
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to