From: Artem Zhidkov Date: Sat, 25 Apr 2020 19:05:58 +0000 (+0300) Subject: Fix the stack overflow crash when dumping nested sketches. X-Git-Tag: V9_6_0a1~60^2~69 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ff6e13e820f033edea5c6b3aa3b0feec59959aa3;p=modules%2Fshaper.git Fix the stack overflow crash when dumping nested sketches. --- diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index 2c8d45c01..5352af497 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -1578,6 +1578,7 @@ ModelHighAPI_Dumper& operator<<(ModelHighAPI_Dumper& theDumper, // store all not-dumped entities first std::set aNotDumped = theDumper.myNotDumpedEntities; + theDumper.clearNotDumped(); theDumper.myDumpStorage->reserveBuffer(); std::set::const_iterator anIt = aNotDumped.begin(); for (; anIt != aNotDumped.end(); ++anIt) {