From: Jérôme Date: Tue, 13 Oct 2020 18:24:39 +0000 (+0200) Subject: Fix issue for nbStep and new icon X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=73963027c87272ebadf018e71448fdcc409a0e6d;p=modules%2Fshaper.git Fix issue for nbStep and new icon --- diff --git a/src/BuildPlugin/BuildPlugin_Interpolation.cpp b/src/BuildPlugin/BuildPlugin_Interpolation.cpp index 7aa82f279..2fd4d48bc 100644 --- a/src/BuildPlugin/BuildPlugin_Interpolation.cpp +++ b/src/BuildPlugin/BuildPlugin_Interpolation.cpp @@ -136,8 +136,8 @@ void BuildPlugin_Interpolation::updateCoods() double scale = (aMaxt - aMint )/aNbrStep; string(VARIABLE_ID())->setValue("t"); - tables(VALUE_ID())->setSize(aNbrStep,4); - for( int step = 0; step < aNbrStep; step++ ){ + tables(VALUE_ID())->setSize(aNbrStep+1,4); + for( int step = 0; step <= aNbrStep; step++ ){ ModelAPI_AttributeTables::Value aVal; aVal.myDouble = step * scale + aMint; tables(VALUE_ID())->setValue(aVal,step,0); @@ -240,11 +240,11 @@ void BuildPlugin_Interpolation::execute() ||string( YT_ID())->value() == "" ||string( ZT_ID())->value() == "" ||tables(VALUE_ID())->rows()== 0 ) - return; + return false; if (!outErrorMessage.empty()){ - setError("Error: Python interpreter " + outErrorMessage); - return; + setError("Error: Python interpreter " ); + return false; } AttributeTablesPtr table = tables( VALUE_ID() ); std::list > aCoodPoints; diff --git a/src/BuildPlugin/icons/feature_interpolation_analytical.png b/src/BuildPlugin/icons/feature_interpolation_analytical.png index e5c5374b9..a47790fc6 100644 Binary files a/src/BuildPlugin/icons/feature_interpolation_analytical.png and b/src/BuildPlugin/icons/feature_interpolation_analytical.png differ diff --git a/src/BuildPlugin/icons/feature_interpolation_by_selection.png b/src/BuildPlugin/icons/feature_interpolation_by_selection.png index f2964c744..e5c5374b9 100644 Binary files a/src/BuildPlugin/icons/feature_interpolation_by_selection.png and b/src/BuildPlugin/icons/feature_interpolation_by_selection.png differ