Salome HOME
Fix a problem with the restoring enforced vertices and enforced meshes
authorrnv <rnv@opencascade.com>
Tue, 15 Dec 2015 14:46:05 +0000 (17:46 +0300)
committerrnv <rnv@opencascade.com>
Tue, 15 Dec 2015 14:46:05 +0000 (17:46 +0300)
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx

index d7a7b852333801b11ecf04b9d5c25c4977d4ed76..c4c99012c93d1d5fd239a1bdd633d64f594f3014 100644 (file)
@@ -1252,9 +1252,11 @@ std::istream & GHS3DPlugin_Hypothesis::LoadFrom(std::istream & load)
     bool hasCoords = false;
     isOK = (load >> txt);  // __BEGIN_VERTEX__
     while (isOK) {
-      if (txt == "__ENFORCED_VERTICES_END__")
-        isOK = false;
-
+      if (txt == "__ENFORCED_VERTICES_END__") {
+        //isOK = false;
+        break;
+      }
+      
       TGHS3DEnforcedVertex *enfVertex = new TGHS3DEnforcedVertex();
       while (isOK) {
         isOK = (load >> txt);