diff --git a/src/xmlcopyeditor.cpp b/src/xmlcopyeditor.cpp index 3dec286..5827145 100644 --- a/src/xmlcopyeditor.cpp +++ b/src/xmlcopyeditor.cpp @@ -5582,9 +5582,11 @@ void MyFrame::messagePane ( const wxString& s, int iconType, bool forcePane ) htmlBuffer += htmlString; htmlBuffer += _T ( "" ); + wxString file; XmlDoc *doc = getActiveDocument(); if ( doc ) - htmlReport->setLastFile ( doc->getFullFileName() ); + file = doc->getFullFileName(); + htmlReport->setLastFile ( file ); htmlReport->SetPage ( htmlBuffer ); manager.Update();