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

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kate/part
From:       Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date:       2007-04-27 17:55:52
Message-ID: 1177696552.160712.4527.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 658551 by mwoehlke:

Fix GLARINGLY OBVIOUS (at least in retrospect ;-) ...ouch) bug restoring a cached \
selection when updateSelection decides it has nothing to do (doSelect == false). \
Basically this was preventing selecting only line 0 in TC select if line 0 was the \
initial selection, and the selection had been dragged to include line 1.


 M  +1 -1      kateviewinternal.cpp  


--- branches/KDE/3.5/kdelibs/kate/part/kateviewinternal.cpp #658550:658551
@@ -2147,7 +2147,7 @@
 
       if ( doSelect )
         m_view->setSelection( selectAnchor, newCursor);
-      else if ( selStartCached.line() > 0 ) // we have a cached selection, so we \
restore that +      else if ( selStartCached.line() >= 0 ) // we have a cached \
selection, so we restore that  m_view->setSelection( selStartCached, selEndCached );
     }
 


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

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