Bug 144629 - Unable to fit curve with weighted fit from context menu
Summary: Unable to fit curve with weighted fit from context menu
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: 2007-04-24 22:52 UTC by Andrew Walker
Modified: 2007-04-25 19:56 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 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 ||