From: gdd Date: Tue, 14 Feb 2012 15:16:35 +0000 (+0000) Subject: Save of Hdf file with enforced vertices was badly done X-Git-Tag: V6_5_0a1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=16a8d16f36b0508a663c00d8a7e0a6bf9d6274e7;p=plugins%2Fghs3dplugin.git Save of Hdf file with enforced vertices was badly done --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx index d87d35a..19a0478 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx @@ -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); } }