Salome HOME
The persistence mechanism of part results modification features support
[modules/shaper.git] / src / Model / Model_AttributeIntArray.cpp
index a61a9cc0e97c3d373bd9b2731f35c8dcc61e7d10..b9cb85876640992a1a499fd2791519c6fd491087 100644 (file)
@@ -23,7 +23,7 @@ int Model_AttributeIntArray::size()
   if (myArray.IsNull() || !myArray->IsValid()) {
     // this could be on undo and then redo creation of the attribute
     // in result creation it may be uninitialized
-      myIsInitialized = myLab.FindAttribute(TDataStd_IntegerArray::GetID(), myArray);
+    myIsInitialized = myLab.FindAttribute(TDataStd_IntegerArray::GetID(), myArray) == Standard_True;
   }
   // checking the validity because attribute (as a field) may be presented,
   // but without label: it is undoed