From 329bca696bfba94d07ef95faa7556a74c4c74c46 Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 6 Feb 2006 08:10:26 +0000 Subject: [PATCH] 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) --- src/CONVERTOR/VISU_MedConvertor.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2