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

List:       kde-commits
Subject:    KDE/kdelibs/kate/buffer
From:       Pascal Létourneau <pascal.letourneau () gmail ! com>
Date:       2010-09-17 19:59:21
Message-ID: 20100917195921.8AB06AC888 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1176499 by pletourn:

Don't send QChar::LineSeparator to QTextLayout

BUG:247057


 M  +13 -0     katetextloader.h  


--- trunk/KDE/kdelibs/kate/buffer/katetextloader.h #1176498:1176499
@@ -307,6 +307,19 @@
 
           return !encodingError;
         }
+        else if (m_text.at(m_position) == QChar::LineSeparator)
+        {
+          m_lastWasEndOfLine = true;
+
+          // line data
+          offset = m_lastLineStart;
+          length = m_position-m_lastLineStart;
+
+          m_lastLineStart = m_position+1;
+          m_position++;
+
+          return !encodingError;
+        }
         else
         {
           m_lastWasEndOfLine = false;
[prev in list] [next in list] [prev in thread] [next in thread] 

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