Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for the issue #19726 : Placement failed because of wrong name in face selection.
[modules/shaper.git]
/
src
/
Model
/
Model_ResultPart.cpp
diff --git
a/src/Model/Model_ResultPart.cpp
b/src/Model/Model_ResultPart.cpp
index 044893237ec599e8bef4d356bc5b6b0f19da9d8c..3c52f0986756e0152b4e7d4a6f0cc0802bb0d4f6 100644
(file)
--- a/
src/Model/Model_ResultPart.cpp
+++ b/
src/Model/Model_ResultPart.cpp
@@
-327,7
+327,11
@@
bool Model_ResultPart::updateInPart(const int theIndex)
AttributeSelectionListPtr aSelAttr = aDoc->selectionInPartFeature();
AttributeSelectionPtr aThisAttr = aSelAttr->value(theIndex - 1);
if (aThisAttr.get()) {
AttributeSelectionListPtr aSelAttr = aDoc->selectionInPartFeature();
AttributeSelectionPtr aThisAttr = aSelAttr->value(theIndex - 1);
if (aThisAttr.get()) {
- return aThisAttr->update();
+ if (aThisAttr->update()) {
+ bool aRemove = false;
+ aThisAttr->updateInHistory(aRemove);
+ return true; // it was updated
+ }
}
}
return false; // something is wrong
}
}
return false; // something is wrong