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
Issue #2059 point in sketch is created not on selected line of external sketchPlane...
[modules/shaper.git]
/
src
/
Model
/
Model_AttributeIntArray.cpp
diff --git
a/src/Model/Model_AttributeIntArray.cpp
b/src/Model/Model_AttributeIntArray.cpp
index c01107332b47d371c7d6f7678bafd0c2aa7ca4a6..15e84ece98aadfd62ea0d9ceafc44db141318904 100644
(file)
--- a/
src/Model/Model_AttributeIntArray.cpp
+++ b/
src/Model/Model_AttributeIntArray.cpp
@@
-71,7
+71,12
@@
int Model_AttributeIntArray::value(const int theIndex)
Model_AttributeIntArray::Model_AttributeIntArray(TDF_Label& theLabel)
{
myLab = theLabel;
Model_AttributeIntArray::Model_AttributeIntArray(TDF_Label& theLabel)
{
myLab = theLabel;
+ reinit();
+}
+
+void Model_AttributeIntArray::reinit()
+{
// check the attribute could be already presented in this doc (after load document)
// check the attribute could be already presented in this doc (after load document)
- myIsInitialized =
+ myIsInitialized =
myLab.FindAttribute(TDataStd_IntegerArray::GetID(), myArray) == Standard_True;
}
myLab.FindAttribute(TDataStd_IntegerArray::GetID(), myArray) == Standard_True;
}