[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Fri Jan 2 22:42:05 CET 2004


CVS commit by arwalker: 

Reinstate change that was removed by last commit.


  M +2 -2      kstview.cpp   1.68


--- kdeextragear-2/kst/kst/kstview.cpp  #1.67:1.68
@@ -814,4 +814,5 @@ void KstView::dropEvent(QDropEvent *e) {
       int plot, label;
       QPoint hs;
+      
       ds >> plot >> label >> hs;
       int posplot = -1, plotCount = KST::plotList.count();
@@ -842,6 +843,5 @@ void KstView::dropEvent(QDropEvent *e) {
       QSize divisor = plotPtr->GetPlotRegion().size();
       l->move(float(pos.x())/divisor.width(), float(pos.y())/divisor.height());
-      l->extents.setX(pos.x());
-      l->extents.setY(pos.y());
+      l->extents.translate(pos.x()-hs.x(), pos.y()-hs.y());
       e->accept(true);
       update();





More information about the Kst mailing list