[Kst] kdeextragear-2/kst/kst

Rick Chern rchern at interchange.ubc.ca
Fri Aug 27 22:57:39 CEST 2004


CVS commit by rchern: 

Check for object instead of its name


  M +1 -4      kstdatamanager_i.cpp   1.80


--- kdeextragear-2/kst/kst/kstdatamanager_i.cpp  #1.79:1.80
@@ -273,6 +273,4 @@ void KstObjectItem::removeImageFromPlot(
 
 void KstObjectItem::paintPlot(Kst2DPlotPtr p) {
-  //Kst only allows unique plot names
-  KstViewObjectPtr rc;
   KstApp *app = KstApp::inst();
   KMdiIterator<KMdiChildView*> *it = app->createIterator();
@@ -280,6 +278,5 @@ void KstObjectItem::paintPlot(Kst2DPlotP
     KstViewWindow *v = dynamic_cast<KstViewWindow*>(it->currentItem());
     if (v) {
-      rc = v->view()->findChild(p->tagName());
-      if (rc) {
+      if (v->view()->contains(static_cast<KstViewObject*>(p))) {
         v->view()->paint(P_PLOT);
         break;





More information about the Kst mailing list