From: vsv Date: Mon, 28 May 2018 13:25:23 +0000 (+0300) Subject: Fix for editing of object with parameter X-Git-Tag: EDF_2018-1~33^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b29910f6a1d24ce49ad7f4c07c709a79b56b3e23;p=modules%2Fshaper.git Fix for editing of object with parameter --- diff --git a/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp b/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp index ba3ac61d3..a2ad6b255 100644 --- a/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp +++ b/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp @@ -191,7 +191,8 @@ bool ModuleBase_WidgetDoubleValue::restoreValueCustom() QString aText = QString::fromStdString(aTextRepr); if (aText.endsWith('=')) { if (!myParameter.get()) { - QString aName = aText.left(aText.length() - aText.indexOf('=')).trimmed(); + QString aName = aText.left(aText.indexOf('=')).trimmed(); + std::string aa = aName.toStdString(); myParameter = findParameter(aName); } AttributeStringPtr aExprAttr = myParameter->string("expression");