0031362: Inspectors - MessageView plugin for message alerts
[occt.git] / src / Message / Message_PrinterToReport.cxx
index b59c4a1..634147f 100644 (file)
@@ -96,8 +96,9 @@ void Message_PrinterToReport::send (const TCollection_AsciiString& theString,
 {
   if (!myName.IsEmpty())
   {
-    send (myName, theGravity);
+    TCollection_AsciiString aName = myName;
     myName.Clear();
+    send (aName, theGravity);
   }
 
   const Handle(Message_Report)& aReport = Report();