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:
9b6f6cc
)
Make names work of result-shapes even they are in "Modified" state.
author
mpv
<mpv@opencascade.com>
Thu, 14 Dec 2017 11:05:16 +0000
(14:05 +0300)
committer
mpv
<mpv@opencascade.com>
Thu, 14 Dec 2017 11:05:16 +0000
(14:05 +0300)
src/Model/Model_Document.cpp
patch
|
blob
|
history
diff --git
a/src/Model/Model_Document.cpp
b/src/Model/Model_Document.cpp
index c422dcf526c085a63aef1a4116c1ec1dddf5384e..f37533c07150b781100ada7f8fd1dd8bc598063b 100755
(executable)
--- a/
src/Model/Model_Document.cpp
+++ b/
src/Model/Model_Document.cpp
@@
-1431,6
+1431,13
@@
TDF_Label Model_Document::findNamingName(std::string theName, ResultPtr theConte
return aName->Label();
}
}
+ // check also "this" label
+ Handle(TDataStd_Name) aName;
+ if (aLabIter->FindAttribute(TDataStd_Name::GetID(), aName)) {
+ if (aName->Get() == aSubName) {
+ return aName->Label();
+ }
+ }
}
}
}