From: apo Date: Tue, 11 Jan 2005 06:15:56 +0000 (+0000) Subject: Fix on Bug PAL6821 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8a039bf3b91a54a1e89748c47e06f072dbfcbeb4;p=modules%2Fvisu.git Fix on Bug PAL6821 CRASH after trying to create presentation for the imported .med file in Post-Pro --- diff --git a/src/VISU_I/VISU_Mesh_i.cc b/src/VISU_I/VISU_Mesh_i.cc index d5f6e584..dadbcdc7 100644 --- a/src/VISU_I/VISU_Mesh_i.cc +++ b/src/VISU_I/VISU_Mesh_i.cc @@ -175,7 +175,7 @@ VISU::Mesh_i::~Mesh_i(){ VISU::Storable* VISU::Mesh_i::Build(int theRestoring){ SALOMEDS::StudyBuilder_var aStudyBuilder = myStudy->NewBuilder(); aStudyBuilder->NewCommand(); // There is a transaction - //try{ + try{ if(myResult->GetInput() == NULL) throw std::runtime_error("Mesh_i::Build - myResult->GetInput() == NULL !!!"); if(!theRestoring){ @@ -228,13 +228,13 @@ VISU::Storable* VISU::Mesh_i::Build(int theRestoring){ CORBA::String_var aString = GetID(); anIOR->SetValue(aString); } - //}catch(std::exception& exc){ - // INFOS("Follow exception was occured :\n"<CommitCommand(); return this; }