From 8a039bf3b91a54a1e89748c47e06f072dbfcbeb4 Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 11 Jan 2005 06:15:56 +0000 Subject: [PATCH] Fix on Bug PAL6821 CRASH after trying to create presentation for the imported .med file in Post-Pro --- src/VISU_I/VISU_Mesh_i.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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; } -- 2.39.2