Salome HOME
Merge branch 'master' into pre/V8_2_BR
[modules/gui.git] / src / VTKViewer / VTKViewer_GeometryFilter.cxx
index 237adfb6c4611a18f907a79230ea386ae266b856..a289dc87c2ac60cfe4457e5538e55e3e48d0eca7 100755 (executable)
@@ -1146,9 +1146,9 @@ VTKViewer_GeometryFilter
                         // avoid adding it when treating another face
                         process = midPoints.insert( face->GetPointId(p2) ).second; break;
                       case 1: // the edge is shared by two cells
-                        process = ( cellIdsTmp->GetId(0) == cellId ); break;
+                        process = ( cellIdsTmp->GetId(0) < cellId ); break;
                       default: // the edge is shared by >2 cells
-                        process = ( cellIdsTmp->GetId(0) != cellId ); break;
+                        process = ( cellIdsTmp->GetId(0) < cellId ); break;
                       }
                       if ( process )
                       {