[Kst] [Bug 129270] zoom guidlines remain as phantoms when switching mouse modes with F-keys.

Andrew Walker arwalker at sumusltd.com
Sat Jun 17 01:42:59 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=129270         
arwalker sumusltd com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From arwalker sumusltd com  2006-06-17 01:42 -------
SVN commit 552204 by arwalker:

BUG:129270 Ensure no phantom guidelines are created when switching modes.

 M  +4 -2      kst2dplot.cpp  
 M  +1 -1      ksttoplevelview.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kst2dplot.cpp #552203:552204
 @ -2383,8 +2383,10  @
 
     KstMouseModeType gzType = globalZoomType();
     if (view && (gzType == X_ZOOMBOX || gzType == Y_ZOOMBOX)) {
-      updateXYGuideline(view, QPoint(-1, -1), view->mapFromGlobal(QCursor::pos()), GetPlotRegion(), gzType);
-      _mouse.lastGuideline = view->mapFromGlobal(QCursor::pos());
+      if (GetPlotRegion().contains(_mouse.tracker)) {
+        updateXYGuideline(view, QPoint(-1, -1), view->mapFromGlobal(QCursor::pos()), GetPlotRegion(), gzType);
+        _mouse.lastGuideline = view->mapFromGlobal(QCursor::pos());
+      }
     }
   }
 }
--- trunk/extragear/graphics/kst/src/libkstapp/ksttoplevelview.cpp #552203:552204
 @ -240,10 +240,10  @
   if (_mode == LayoutMode && v != LayoutMode) {
     recursively<bool>(&KstViewObject::setSelected, false);
     clearFocus();
-    paint(KstPainter::P_PAINT);
   } else if (_mode == DisplayMode && v != DisplayMode) {
     recursively<bool>(&KstViewObject::setMaximized, false);
   }
+  paint(KstPainter::P_PAINT);
 
   _mode = v;


More information about the Kst mailing list