[Kst] branches/work/kst/portto4/kst/src/libkstapp

Peter Kümmel syntheticpp at gmx.net
Sun Dec 12 21:11:21 CET 2010


SVN commit 1205852 by kuemmel:

build with Qt 4.4

 M  +8 -2      plotitemmanager.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/plotitemmanager.cpp #1205851:1205852
@@ -204,8 +204,11 @@
   if (kstApp->mainWindow()->isTiedTabs()) {
     QList<PlotItem*> plots;
     foreach (View *view, PlotItemManager::self()->_tiedZoomViewPlotLists.keys()) {
-      plots.append(PlotItemManager::self()->_tiedZoomViewPlotLists.value(view));
+      const QList<PlotItem*> plotlist = PlotItemManager::self()->_tiedZoomViewPlotLists.value(view);
+      foreach(PlotItem* item, plotlist) {
+        plots.append(item);
     }
+    }
     return plots;
   } else {
     if (PlotItemManager::self()->_tiedZoomViewPlotLists.contains(view)) {
@@ -246,8 +249,11 @@
   if (kstApp->mainWindow()->isTiedTabs()) {
     QList<PlotItem*> plots;
     foreach (View *view, PlotItemManager::self()->_tiedZoomViewPlotLists.keys()) {
-      plots.append(PlotItemManager::self()->_tiedZoomViewPlotLists.value(view));
+      const QList<PlotItem*> plotlist = PlotItemManager::self()->_tiedZoomViewPlotLists.value(view);
+      foreach(PlotItem* item, plotlist) {
+        plots.append(item);
     }
+    }
 
     return plots;
 


More information about the Kst mailing list