diff --git a/Polyhedron/demo/Polyhedron/Polyhedron_demo_mesh_3_plugin_cgal_code.cpp b/Polyhedron/demo/Polyhedron/Polyhedron_demo_mesh_3_plugin_cgal_code.cpp index f3c9c76b1f4..30d2edb7d1b 100644 --- a/Polyhedron/demo/Polyhedron/Polyhedron_demo_mesh_3_plugin_cgal_code.cpp +++ b/Polyhedron/demo/Polyhedron/Polyhedron_demo_mesh_3_plugin_cgal_code.cpp @@ -288,6 +288,7 @@ public slots: if(!item->load(off_sstream)) { delete item; + off_sstream.clear(); off_sstream.str(backup); // Try to read .off in a polygon soup