From: rnv Date: Tue, 15 Dec 2015 14:46:05 +0000 (+0300) Subject: Fix a problem with the restoring enforced vertices and enforced meshes X-Git-Tag: V8_0_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=98e280ee5df32133341641951c5308ffc3838850;p=plugins%2Fghs3dplugin.git Fix a problem with the restoring enforced vertices and enforced meshes --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx index d7a7b85..c4c9901 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx @@ -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);