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

List:       kde-commits
Subject:    koffice/krita/core
From:       Adrian Page <adrian () pagenet ! plus ! com>
Date:       2004-07-15 12:51:10
Message-ID: 20040715125110.8769F16AFC () office ! kde ! org
[Download RAW message or body]

CVS commit by page: 

Only scroll when the scrollbar's visible.


  M +6 -4      kis_view.cc   1.288


--- koffice/krita/core/kis_view.cc  #1.287:1.288
@@ -1842,8 +1842,10 @@ Q_INT32 KisView::docHeight() const
 void KisView::scrollTo(Q_INT32 x, Q_INT32 y)
 {
-        kdDebug() << "scroll to " << x << "," << y << endl;
-
+        if (m_hScroll -> isVisible()) {
         m_hScroll -> setValue(x);
+        }
+        if (m_vScroll -> isVisible()) {
         m_vScroll -> setValue(y);
+        }
 }
 


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

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