]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix the stack overflow crash when dumping nested sketches.
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Sat, 25 Apr 2020 19:05:58 +0000 (22:05 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Sat, 25 Apr 2020 19:05:58 +0000 (22:05 +0300)
src/ModelHighAPI/ModelHighAPI_Dumper.cpp

index 2c8d45c0175b93d386c3416a43b6e7a06b641c9d..5352af49710ce0f43dc4e4116c758aae69d034f0 100644 (file)
@@ -1578,6 +1578,7 @@ ModelHighAPI_Dumper& operator<<(ModelHighAPI_Dumper& theDumper,
 
   // store all not-dumped entities first
   std::set<EntityPtr> aNotDumped = theDumper.myNotDumpedEntities;
+  theDumper.clearNotDumped();
   theDumper.myDumpStorage->reserveBuffer();
   std::set<EntityPtr>::const_iterator anIt = aNotDumped.begin();
   for (; anIt != aNotDumped.end(); ++anIt) {