]> SALOME platform Git repositories - plugins/hybridplugin.git/commitdiff
Salome HOME
Save of Hdf file with enforced vertices was badly done
authorgdd <gdd>
Tue, 14 Feb 2012 15:16:35 +0000 (15:16 +0000)
committergdd <gdd>
Tue, 14 Feb 2012 15:16:35 +0000 (15:16 +0000)
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx

index d87d35a77bf659740fadaf31569295f15e99776a..19a047857fdc342176db88383d06eeafbc120c4c 100644 (file)
@@ -907,7 +907,7 @@ std::ostream & GHS3DPlugin_Hypothesis::SaveTo(std::ostream & save)
       }
       save << " " << "__BEGIN_SIZE__";
       save << " " << enfVertex->size;
-      save << " " << "__BEGIN_SIZE__";
+      save << " " << "__END_SIZE__";
       save << " " << "__END_VERTEX__";
     }
     save << "__ENFORCED_VERTICES_END__ ";
@@ -1120,8 +1120,9 @@ std::istream & GHS3DPlugin_Hypothesis::LoadFrom(std::istream & load)
           if (txt == "__BEGIN_SIZE__") {  // __BEGIN_ENTRY__
             isOK = (load >> size);
             isOK = (load >> txt); // __END_ENTRY__
-            if (txt != "__END_SIZE__")
+            if (txt != "__END_SIZE__") {
               throw std::exception();
+            }
             MESSAGE("size: " << size);
           }
         }