From: jfa Date: Thu, 13 Oct 2005 07:58:05 +0000 (+0000) Subject: Fix for 9857: provide warning if no nodes can be read from MED file X-Git-Tag: V2_2_6~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=63b24d6fa566a6c0e0326ce51a9ee3f628ea53a0;p=modules%2Fkernel.git Fix for 9857: provide warning if no nodes can be read from MED file --- diff --git a/src/MEDWrapper/V2_1/MED_V2_1_Wrapper.cxx b/src/MEDWrapper/V2_1/MED_V2_1_Wrapper.cxx index 04afa18fc..03de341a9 100644 --- a/src/MEDWrapper/V2_1/MED_V2_1_Wrapper.cxx +++ b/src/MEDWrapper/V2_1/MED_V2_1_Wrapper.cxx @@ -336,7 +336,7 @@ namespace MED{ INITMSG(MYDEBUG,"GetNodeInfo ... "); TFileWrapper aFileWrapper(myFile,eLECT,theErr); - if(theErr && *theErr < 0 || theInfo.myNbElem<=0) + if(theErr && *theErr < 0) return; MED::TMeshInfo& aMeshInfo = *theInfo.myMeshInfo;