]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
NPAL 18711 Group Filtering Error
authordmv <dmv@opencascade.com>
Fri, 1 Feb 2008 07:37:08 +0000 (07:37 +0000)
committerdmv <dmv@opencascade.com>
Fri, 1 Feb 2008 07:37:08 +0000 (07:37 +0000)
src/CONVERTOR/VISU_MedConvertor.cxx

index 882a82131083f8d574c3d767a37b0ad203bcb15a..5b4ea34cda71ebd0a23ca06d0fcd69207a7b5e8f 100644 (file)
@@ -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