[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kate/part
From:       Hamish Rodda <rodda () kde ! org>
Date:       2006-04-02 5:15:38
Message-ID: 1143954938.294757.23174.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 525452 by rodda:

Fix drawing of selection + arbitrary highlighting backgrounds


 M  +2 -2      katerenderer.cpp  
 M  +3 -0      katetextlayout.cpp  


--- trunk/KDE/kdelibs/kate/part/katerenderer.cpp #525451:525452
@@ -404,7 +404,7 @@
       QColor backgroundColor;
       while (it2.hasNext()) {
         const QTextLayout::FormatRange& fr = it2.peekNext();
-        if (fr.start > line.endCol())
+        if (fr.start >= line.endCol())
           goto backgroundFound;
 
         if (fr.start + fr.length > line.endCol()) {
@@ -418,7 +418,7 @@
 
       while (it.hasNext()) {
         const QTextLayout::FormatRange& fr = it.peekNext();
-        if (fr.start > line.endCol())
+        if (fr.start >= line.endCol())
           break;
 
         if (fr.start + fr.length > line.endCol()) {
--- trunk/KDE/kdelibs/kate/part/katetextlayout.cpp #525451:525452
@@ -144,6 +144,9 @@
   if (!isValid())
     return 0;
 
+  if (viewLine() == kateLineLayout()->viewLineCount() - 1)
+    return -1;
+
   return startCol() + m_textLayout.textLength();
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic