Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
debc32b
)
Fix for editing of object with parameter
author
vsv
<vsv@opencascade.com>
Mon, 28 May 2018 13:25:23 +0000
(16:25 +0300)
committer
vsv
<vsv@opencascade.com>
Mon, 28 May 2018 13:25:23 +0000
(16:25 +0300)
src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp
patch
|
blob
|
history
diff --git
a/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp
b/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp
index ba3ac61d3c11348d86a0fa4ffa0205a86fa8bab9..a2ad6b25596c5c5d43daf2f892bc8c74702440bd 100644
(file)
--- 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");