[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Fri Jun 18 21:39:13 CEST 2004


CVS commit by staikos: 

properly fix the assertion error


  M +4 -3      kst2dplot.cpp   1.100


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.99:1.100
@@ -2389,9 +2389,10 @@ void Kst2DPlot::mousePressEvent(QWidget 
           _mouse.mode = globalZoomType();
           assert(_mouse.mode != INACTIVE);
-          assert(_mouse.mode != LABEL_TOOL);
         }
+        if (_mouse.mode != LABEL_TOOL) {
         _mouse.plotGeometry = GetPlotRegion();
         _mouse.zoomStart(_mouse.mode, e->pos());
       }
+      }
       return;
     } else if (plot_and_axis_rect.contains(e->pos())) {





More information about the Kst mailing list