Bug 93765

Summary: data wizard adds psd to curve plots in certain cases
Product: [Applications] kst Reporter: Netterfield <netterfield>
Component: generalAssignee: Netterfield <netterfield>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: wizardcycle.patch

Description Netterfield 2004-11-23 02:45:37 UTC
Version:           1.0.0_pre1 (using KDE 3.3.1, Gentoo)
Compiler:          gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
OS:                Linux (i686) release 2.6.8-gentoo-r3

from the data wizard load 6 vectors
select curves and psds
select Cycle through 3 plots

The curve plots have both the curves and the last 3 psds.
The psd plots have just the first 3 psds.
Comment 1 Netterfield 2004-11-23 02:58:51 UTC
Attached is the fix.



Created an attachment (id=8388)
wizardcycle.patch
Comment 2 Netterfield 2004-11-23 03:14:18 UTC
CVS commit by netterfield: 

Fix assignment of psds to plots....

BUG: 93765


  M +4 -0      datawizard.ui.h   1.99


--- kdeextragear-2/kst/kst/datawizard.ui.h  #1.98:1.99
@@ -695,4 +695,7 @@ void DataWizard::finished()
                 if (!_onePlot->isChecked()) { // change plots if we are not onePlot...
                     if (++pit == plots.end()) {
+                      if (_radioButtonPlotDataPSD->isChecked()) { // if xy and psd
+                        pit = plots.at(plots.count()/2);
+                      } else {
                         pit = plots.begin();
                     }
@@ -700,4 +703,5 @@ void DataWizard::finished()
             }
         }
+        }
         app->slotUpdateProgress(n_steps, ++prg, i18n("Creating PSDs..."));
     }