} else {
ModuleBase_Tools::editParameter(myParameter, aText);
}
- aText = aText.split('=').at(0) + "=";
+ aText = aText.split('=').at(0); // +"=";
} else if (myParameter.get()){
// Nullyfy the parameter reference without deletion of the created
myParameter = FeaturePtr();
std::string aTextRepr = aRef->text();
if (!aTextRepr.empty()) {
QString aText = QString::fromStdString(aTextRepr);
- if (aText.endsWith('=')) {
- if (!myParameter.get()) {
- QString aName = aText.left(aText.indexOf('=')).trimmed();
- myParameter = ModuleBase_Tools::findParameter(aName);
- }
- /// If myParameter is empty then it was not created because of an error
- if (!myParameter.get())
- return false;
-
- AttributeStringPtr aExprAttr = myParameter->string("expression");
- aText += aExprAttr->value().c_str();
- }
+ //if (aText.endsWith('=')) {
+ // if (!myParameter.get()) {
+ // QString aName = aText.left(aText.indexOf('=')).trimmed();
+ // myParameter = ModuleBase_Tools::findParameter(aName);
+ // }
+ // /// If myParameter is empty then it was not created because of an error
+ // if (!myParameter.get())
+ // return false;
+
+ // AttributeStringPtr aExprAttr = myParameter->string("expression");
+ // aText += aExprAttr->value().c_str();
+ //}
ModuleBase_Tools::setSpinText(mySpinBox, aText);
} else {
ModuleBase_Tools::setSpinValue(mySpinBox, aRef->isInitialized() ? aRef->value() : 0);