From: nds Date: Fri, 10 Apr 2015 11:52:51 +0000 (+0300) Subject: Fix for a crash. Scenario: save a study with an extrusion created, open the file... X-Git-Tag: V_1.1.0~51^2^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f1e148577aba644f684b10abc4928d30cc5357b5;p=modules%2Fshaper.git Fix for a crash. Scenario: save a study with an extrusion created, open the file, call "Edit" on extrusion. --- diff --git a/src/Model/Model_AttributeDouble.cpp b/src/Model/Model_AttributeDouble.cpp index 87bba89cf..86cbc9e14 100644 --- a/src/Model/Model_AttributeDouble.cpp +++ b/src/Model/Model_AttributeDouble.cpp @@ -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()); } }