From: apo Date: Mon, 6 Feb 2006 08:10:26 +0000 (+0000) Subject: Fix for Bug IPAL11511 X-Git-Tag: mergeto_trunk_07Feb06~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=329bca696bfba94d07ef95faa7556a74c4c74c46;p=modules%2Fvisu.git Fix for Bug IPAL11511 CRASH if to import not MED file in Post-Pro module. (before a creation of a VISU_MedConvertor instance we check if it is possible to manage the defined file) --- diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index 1d51be10..2eaddcfe 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -958,7 +958,9 @@ extern "C" VISU_Convertor* CreateConvertor(const string& theFileName) { - return new VISU_MedConvertor(theFileName); + if(MED::PWrapper aMed = MED::CrWrapper(theFileName)) + return new VISU_MedConvertor(theFileName); + return NULL; } VISU_MedConvertor