[Kst] kst_oldview_branch: kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Jun 9 20:29:01 CEST 2004
CVS commit by staikos:
workaround for crash that was reported. I'm not sure it will do any good
though, as it will probably crash later. Since this code is "dead", it's not
worth a huge effort at this point.
M +13 -10 kstview.cpp 1.91.2.1
--- kdeextragear-2/kst/kst/kstview.cpp #1.91:1.91.2.1
@@ -686,5 +686,7 @@ void KstView::mouseMoveEvent(QMouseEvent
for (i = i0; i < iN; i++) {
- QRect plot_rect = KST::plotList.at(i)->GetPlotRegion();
+ KstPlot *p = KST::plotList.at(i);
+ if (p) {
+ QRect plot_rect = p->GetPlotRegion();
if (plot_rect.contains(e->pos())) {
if (MouseInfo->getMode() == INACTIVE) {
@@ -700,4 +702,5 @@ void KstView::mouseMoveEvent(QMouseEvent
}
}
+ }
updateMouse();
MouseInfo->setCursor(in_plot, e);
More information about the Kst
mailing list