From 16a8d16f36b0508a663c00d8a7e0a6bf9d6274e7 Mon Sep 17 00:00:00 2001 From: gdd Date: Tue, 14 Feb 2012 15:16:35 +0000 Subject: [PATCH] Save of Hdf file with enforced vertices was badly done --- src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } -- 2.39.2