]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for a crash. Scenario: save a study with an extrusion created, open the file...
authornds <natalia.donis@opencascade.com>
Fri, 10 Apr 2015 11:52:51 +0000 (14:52 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 10 Apr 2015 11:52:51 +0000 (14:52 +0300)
src/Model/Model_AttributeDouble.cpp

index 87bba89cfcb414356737172b932e57058adcf23c..86cbc9e14bfbe5e7083d86a5f1a9b8b8ab5e70e0 100644 (file)
@@ -33,6 +33,8 @@ Model_AttributeDouble::Model_AttributeDouble(TDF_Label& theLabel)
   if (!myIsInitialized) {
     // create attribute: not initialized by value yet, just zero
     myReal = TDataStd_Real::Set(theLabel, 0.);
+  }
+  if (!theLabel.FindAttribute(TDataStd_Name::GetID(), myText)) {
     myText = TDataStd_Name::Set(theLabel, TCollection_ExtendedString());
   }
 }