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

List:       kde-commits
Subject:    koffice/libs/flake
From:       Thomas Zander <zander () kde ! org>
Date:       2008-12-24 1:01:58
Message-ID: 1230080518.722672.4565.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 900922 by zander:

Make sure that we repaint the canvas after a zoom.
Note that using 'update()' actually will only repaint the visible area; so this is
the simplest yet cheapest call. :)

 M  +6 -2      KoCanvasController_p.cpp  


--- trunk/koffice/libs/flake/KoCanvasController_p.cpp #900921:900922
@@ -336,10 +336,14 @@
             m_canvas->setGeometry(0, 0, viewW, viewH);
         else
             m_canvas->setGeometry(moveX, moveY, resizeW, resizeH);
+        m_canvas->update();
     }
 
-//     kDebug(30006) <<"View port geom:" << geometry();
-//     kDebug(30006) <<"Canvas widget geom:" << m_canvas->geometry();
+#if 0
+     kDebug(30006) <<"View port geom:" << geometry();
+     if (m_canvas)
+        kDebug(30006) <<"Canvas widget geom:" << m_canvas->geometry();
+#endif
 }
 
 #include "KoCanvasController_p.moc"
[prev in list] [next in list] [prev in thread] [next in thread] 

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