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

List:       kde-commits
Subject:    kdelibs/kate/part
From:       Hamish Rodda <meddie () yoyo ! its ! monash ! edu ! au>
Date:       2003-02-01 2:42:22
[Download RAW message or body]

CVS commit by rodda: 

Fix cursorPosition() for non-wordwrap mode.

Needs a backport.

CCMAIL:53690-done@bugs.kde.org


  M +2 -2      kateviewinternal.cpp   1.174


--- kdelibs/kate/part/kateviewinternal.cpp  #1.173:1.174
@@ -811,5 +811,5 @@ QPoint KateViewInternal::cursorCoordinat
   
   uint y = viewLine * m_doc->viewFont.fontHeight;
-  uint x = cXPos - lineRanges[viewLine].startX + leftBorder->width();
+  uint x = cXPos - m_startX - lineRanges[viewLine].startX + leftBorder->width();
   
   return QPoint(x, y);


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

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