]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
GetElemObjId() method fixed
authorrkv <rkv@opencascade.com>
Thu, 28 Dec 2006 10:49:21 +0000 (10:49 +0000)
committerrkv <rkv@opencascade.com>
Thu, 28 Dec 2006 10:49:21 +0000 (10:49 +0000)
src/VTKViewer/VTKViewer_GeometryFilter.cxx

index 420c1a1d32cd56c2580dd209980a708c140377ef..e1f5428504cef6260ef301d34611fec7a1a515e4 100755 (executable)
@@ -815,7 +815,8 @@ VTKViewer_GeometryFilter
 
 vtkIdType VTKViewer_GeometryFilter::GetElemObjId( int theVtkID )
 {
-  if( myVTK2ObjIds.empty() || theVtkID > (int)myVTK2ObjIds.size() )
+// RKV  if( myVTK2ObjIds.empty() || theVtkID > (int)myVTK2ObjIds.size() )
+  if( myVTK2ObjIds.empty() || theVtkID >= (int)myVTK2ObjIds.size() ) // RKV
     return -1;
 #if defined __GNUC_2__
   return myVTK2ObjIds[theVtkID];