[Kst] branches/work/kst/portto4/kst/src/plugins/fits/polynomial_unweighted

Peter Kümmel syntheticpp at gmx.net
Tue Mar 22 21:12:15 CET 2011


SVN commit 1225668 by kuemmel:

undo workaround. but then the reloading does not work again. we need a other solution.

 M  +3 -13     fitpolynomial_unweighted.cpp  


--- branches/work/kst/portto4/kst/src/plugins/fits/polynomial_unweighted/fitpolynomial_unweighted.cpp #1225667:1225668
@@ -322,23 +322,13 @@
 
   if (ConfigWidgetFitPolynomialUnweightedPlugin* config = static_cast<ConfigWidgetFitPolynomialUnweightedPlugin*>(configWidget)) {
 
-    Kst::VectorPtr x;
-    Kst::VectorPtr y;
-    Kst::ScalarPtr order;
-
-    if (setupInputsOutputs) {
-      x = config->selectedVectorX();
-      y = config->selectedVectorY();
-      order = config->selectedScalarOrder();
-    }
-
     FitPolynomialUnweightedSource* object = store->createObject<FitPolynomialUnweightedSource>();
 
     if (setupInputsOutputs) {
       object->setupOutputs();
-      object->setInputVector(VECTOR_IN_X, x);
-      object->setInputVector(VECTOR_IN_Y, y);
-      object->setInputScalar(SCALAR_IN, order);
+      object->setInputVector(VECTOR_IN_X, config->selectedVectorX());
+      object->setInputVector(VECTOR_IN_Y, config->selectedVectorY());
+      object->setInputScalar(SCALAR_IN, config->selectedScalarOrder());
     }
 
     object->setPluginName(pluginName());


More information about the Kst mailing list