Salome HOME
Issue #1865: Create a field
[modules/shaper.git] / src / Model / Model_AttributeTables.cpp
index 923caa3d7074eadc4a499d36675fea52c9192805..77930e5a2c6876ae23c3cbfd14c6719dcc50b16b 100644 (file)
@@ -155,7 +155,7 @@ void Model_AttributeTables::setType(ModelAPI_AttributeTables::ValueType theType)
       myType = theType;
       int aTables = myTables;
       myTables = 0; // to let setSize know that there is no old array 
-      setSize(myRows, myCols, myTables);
+      setSize(myRows, myCols, aTables);
     } else {
       myType = theType;
       owner()->data()->sendAttributeUpdated(this);