[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Sat Sep 27 01:22:53 CEST 2003


CVS commit by staikos: 

On second thought, better be safe.


  M +2 -2      kstview.cpp   1.48


--- kdeextragear-2/kst/kst/kstview.cpp  #1.47:1.48
@@ -365,6 +365,6 @@ void KstView::update() {
   paintEvent(NULL);
   int plot = MouseInfo->getPlotNum();
-  if (plot >= 0) {
-    KstPlot* pPlot = KST::plotList.at(plot);
+  KstPlot* pPlot;
+  if (plot >= 0 && (pPlot = KST::plotList.at(plot))) {
     QRect plot_rect = pPlot->GetPlotRegion();
     QPoint pos = mapFromGlobal(QCursor::pos());




More information about the Kst mailing list