From 63b24d6fa566a6c0e0326ce51a9ee3f628ea53a0 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 13 Oct 2005 07:58:05 +0000 Subject: [PATCH] Fix for 9857: provide warning if no nodes can be read from MED file --- src/MEDWrapper/V2_1/MED_V2_1_Wrapper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2