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 #593: do not remove naming attribute, but use TNaming_Builder for...
[modules/shaper.git]
/
src
/
Model
/
Model_AttributeSelectionList.cpp
diff --git
a/src/Model/Model_AttributeSelectionList.cpp
b/src/Model/Model_AttributeSelectionList.cpp
index 79eb5c714e12ee2e5565c209dfb271f3d793b389..3b67df9eb0a9063e23a7874fde696432fdaa9857 100644
(file)
--- a/
src/Model/Model_AttributeSelectionList.cpp
+++ b/
src/Model/Model_AttributeSelectionList.cpp
@@
-102,6
+102,14
@@
void Model_AttributeSelectionList::clear()
}
}
}
}
+bool Model_AttributeSelectionList::isInitialized()
+{
+ if (size() == 0) { // empty list is not initialized list: sketch will be not valid after add/undo
+ return false;
+ }
+ return ModelAPI_AttributeSelectionList::isInitialized();
+}
+
Model_AttributeSelectionList::Model_AttributeSelectionList(TDF_Label& theLabel)
{
myIsInitialized = theLabel.FindAttribute(TDataStd_Integer::GetID(), mySize) == Standard_True;
Model_AttributeSelectionList::Model_AttributeSelectionList(TDF_Label& theLabel)
{
myIsInitialized = theLabel.FindAttribute(TDataStd_Integer::GetID(), mySize) == Standard_True;