[Kst] branches/work/kst/portto4/kst/src/libkstapp

Mike Fenton mike at staikos.net
Mon Apr 14 19:22:10 CEST 2008


SVN commit 797003 by fenton:

Fix for CTRL/SHIFT selection rect marker not clearing on key release.


 M  +2 -2      plotrenderitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitem.cpp #797002:797003
@@ -512,7 +512,7 @@
   if (_selectionRect.isValid()) {
     _selectionRect.reset();
     updateCursor(_lastPos);
-    updateSelectionRect();
+    update();
   }
 }
 
@@ -603,7 +603,7 @@
     _selectionRect.setTo(QPointF(p.x(), rect().bottom()));
     update(); //FIXME should optimize instead of redrawing entire curve!
   } else {
-     updateCursor(event->pos());
+    resetSelectionRect();
   }
   const QPointF point = plotItem()->mapToProjection(event->pos());
   QString message = QString("(%1, %2)").arg(QString::number(point.x(), 'G')).arg(QString::number(point.y()));


More information about the Kst mailing list