Bug 144629

Summary: Unable to fit curve with weighted fit from context menu
Product: [Applications] kst Reporter: Andrew Walker <arwalker>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andrew Walker 2007-04-24 22:52:28 UTC
Version:           HEAD (using KDE KDE 3.5.1)
Installed from:    Compiled From Sources
OS:                Linux

PROBLEM:

Using the rlight mouse button context menu associated with a curve to fit with a weighted fit is non-functional.

STEPS TO REPRODUCE:

Start Kst
Create a plot with a single curve
Right click on the plot and select Edit... <Curve name>
In the New Plugin select a weighted fit (e.g. Fit gradient weighted)

RESULTS:
There is no way to select the Input vector - Weights
Trying to create the fit by hitting Ok results in an error.

EXPECTED RESULTS:
There should be a way of selecting the Input vector - Weights
The user should be able to create the fit
Comment 1 Andrew Walker 2007-04-25 19:56:40 UTC
SVN commit 658017 by arwalker:

BUG:144629 allow user to specify weight vector if not already defined for fit

 M  +2 -1      kstfitdialog_i.cpp  


--- branches/work/kst/1.5/kst/src/libkstapp/kstfitdialog_i.cpp #658016:658017
@@ -274,7 +274,8 @@
         string = true;
         break;
       case Plugin::Data::IOValue::TableType:
-        if (input && ( iInputVector < 2 || ( isWeighted && iInputVector < 3 ) ) ) {
+        if (input && ( iInputVector == 0 || iInputVector == 1 || 
+                     ( isWeighted && iInputVector == 2 && !_evector.isEmpty() ) ) ) {
           fixed = true;
         }
         if ((*it)._subType == Plugin::Data::IOValue::FloatSubType ||