Bug 65340 - Unable to remove Y error bar
Summary: Unable to remove Y error bar
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-01 22:25 UTC by Andrew Walker
Modified: 2003-10-02 07:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2003-10-01 22:25:08 UTC
Version:           0.92 (using KDE KDE 3.1)
Installed from:    Compiled From Sources
Compiler:          gcc 
OS:          Linux

Setps to reproduce:

* Start KST with test data. e.g. kst -y 1 -n 10000 boom.dat
* Right click on the plot and select Edit Curve -> C1-1
* Click on the drop down box to the right of Y error bar: and select V1-Index
* Click on Apply Edits
* Click on the drop down box to the right of Y error bar: and select None
* Click on Apply Edits

Expected results:

Should now have a plot displaying no y-error bars

Actual results:

The error bars are still present
Comment 1 George Staikos 2003-10-02 07:26:50 UTC
Subject: kdeextragear-2/kst/kst

CVS commit by staikos: 

Allow the removal of error bars

CCMAIL: 65340-done@bugs.kde.org


  M +2 -4      kstcurvedialog_i.cpp   1.29
  M +1 -2      ksteqdialog_i.cpp   1.32


--- kdeextragear-2/kst/kst/kstcurvedialog_i.cpp  #1.28:1.29
@@ -283,9 +283,7 @@ void KstCurveDialogI::edit_I() {
 
     i = KST::vectorList.findTag(_xError->selectedVector());
-    if (i != KST::vectorList.end())
       curve->setXError(*i);
 
     i = KST::vectorList.findTag(_yError->selectedVector());
-    if (i != KST::vectorList.end())
       curve->setYError(*i);
   }

--- kdeextragear-2/kst/kst/ksteqdialog_i.cpp  #1.31:1.32
@@ -218,5 +218,5 @@ void KstEqDialogI::new_I() {
     n = N->value();
     if (n < 2) {
-      KMessageBox::sorry(0L, i18n("The equation must be evaluated at more than 1 point.  Increase Num Samples."));
+      KMessageBox::sorry(0L, i18n("The equation must be evaluated at more than 1 point.  Increase the number of samples."));
       return;
     }
@@ -362,5 +362,4 @@ void KstEqDialogI::delete_I() {
 
   KST::dataObjectList.removeTag(tag);
-  // FIXME: don't allow this if the equation is in use by a curve
   emit modified();
 }