From 634b88323e41b537b7f0866c8ffd35084d55242f Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 1 Feb 2008 07:37:08 +0000 Subject: [PATCH] NPAL 18711 Group Filtering Error --- src/CONVERTOR/VISU_MedConvertor.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 -- 2.39.2