From: mpv Date: Tue, 19 May 2015 13:17:36 +0000 (+0300) Subject: Fix for crash because of null myFlags in the Data X-Git-Tag: V_1.2.0~142 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5fb260b84b7e7c7a352cacb5a72ada3b235d1175;p=modules%2Fshaper.git Fix for crash because of null myFlags in the Data --- diff --git a/src/Model/Model_Data.cpp b/src/Model/Model_Data.cpp index 608aedc7a..b6c27518e 100644 --- a/src/Model/Model_Data.cpp +++ b/src/Model/Model_Data.cpp @@ -55,7 +55,7 @@ void Model_Data::setLabel(TDF_Label theLab) // set or get the default flags if (!myLab.FindAttribute(TDataStd_BooleanArray::GetID(), myFlags)) { // set default values if not found - Handle(TDataStd_BooleanArray) myFlags = TDataStd_BooleanArray::Set(myLab, 0, 1); + myFlags = TDataStd_BooleanArray::Set(myLab, 0, 1); myFlags->SetValue(kFlagInHistory, Standard_True); // is in history by default is true myFlags->SetValue(kFlagDisplayed, Standard_True); // is displayed by default is true }