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

List:       kde-commits
Subject:    playground/office/flake/lib
From:       Thorsten Zachmann <t.zachmann () zagge ! de>
Date:       2006-05-18 3:39:12
Message-ID: 1147923552.105889.32538.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 542050 by zachmann:

o Remove unneeded repaints


 M  +4 -2      KoInteractionTool.cpp  


--- trunk/playground/office/flake/lib/KoInteractionTool.cpp #542049:542050
@@ -100,7 +100,6 @@
 void KoInteractionTool::mousePressEvent( KoGfxEvent *event ) {
     Q_ASSERT(m_currentStrategy == 0);
     m_currentStrategy = KoInteractionStrategy::createStrategy(event, this, m_canvas);
-    repaintDecorations();
 }
 
 void KoInteractionTool::mouseMoveEvent( KoGfxEvent *event ) {
@@ -161,7 +160,10 @@
 }
 
 void KoInteractionTool::repaintDecorations() {
-     m_canvas->updateCanvas(handlesSize());
+    if ( selection()->count() > 0 )
+    {
+        m_canvas->updateCanvas(handlesSize());
+    }
 }
 
 KoSelection *KoInteractionTool::selection() {
[prev in list] [next in list] [prev in thread] [next in thread] 

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