From: dmv Date: Fri, 1 Feb 2008 07:37:08 +0000 (+0000) Subject: NPAL 18711 Group Filtering Error X-Git-Tag: V4_1_1rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=634b88323e41b537b7f0866c8ffd35084d55242f;p=modules%2Fvisu.git NPAL 18711 Group Filtering Error --- diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index 882a8213..5b4ea34c 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -1197,12 +1197,13 @@ namespace VISU TMEDSubProfile ::GetElemObjID(vtkIdType theID) const { - if(mySubMeshID.empty()) - if(myIsElemNum) - return (*myElemNum)[theID]; - else - return theID; - return mySubMeshID[theID]; + if ( !mySubMeshID.empty() ) + theID = mySubMeshID[theID]; + + if (myIsElemNum) + return (*myElemNum)[theID]; + else + return theID; } unsigned long int