]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix
authoreap <eap@opencascade.com>
Wed, 4 Oct 2017 11:36:35 +0000 (14:36 +0300)
committereap <eap@opencascade.com>
Wed, 4 Oct 2017 11:36:35 +0000 (14:36 +0300)
src/SMESH/SMESH_MeshEditor.cxx

index a3d2b226e49a9f2ffb7b73fa9e297d0347c7e835..9bc9371ee59ef58051938217de8e36f0b7353b2a 100644 (file)
@@ -13119,8 +13119,7 @@ namespace // utils for MakePolyLine
             if ( path.SetCutAtCorner( polySeg.myNode1[ iP ], fIt->next(), plnNorm, plnOrig ))
             {
               if (( path.myDot1 * path.myDot2 != 0 ) ||
-                  ( nodes.insert( path.myNode1._node ).second &&
-                    nodes.insert( path.myNode2._node ).second ))
+                  ( nodes.insert( path.myDot1 == 0 ? path.myNode1._node : path.myNode2._node ).second ))
                 paths.push_back( path );
             }
           }