]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Fix bug in GUI BR_Dev_For_6_3_1 V6_3_0 V6_3_0b2 V6_3_0rc1
authorgdd <gdd>
Fri, 13 May 2011 13:43:14 +0000 (13:43 +0000)
committergdd <gdd>
Fri, 13 May 2011 13:43:14 +0000 (13:43 +0000)
src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx

index 67f4e2b3aa8247b3035cffa200a8dc5b26168f3c..f5d8729c56ef109931251635618e060b007f7799 100644 (file)
@@ -701,12 +701,14 @@ bool GHS3DPluginGUI_HypothesisCreator::storeParamsToHypo( const GHS3DHypothesisD
 //        else {
             // iterate over vertices of hypo
             for(int i = 0 ; i <nbVertexHyp ; i++) {
+              if (vertexHyp[i].coords.length()) {
                 double x = vertexHyp[i].coords[0];
                 double y = vertexHyp[i].coords[1];
                 double z = vertexHyp[i].coords[2];
                 // vertex is removed
                 if (!smpVertexExists(x,y,z))
                     h->RemoveEnforcedVertex(x,y,z);
+              }
             }
 //        }
     }