From d17713986ea1fd6678f041793ce8fd55444352c2 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Sat, 24 May 2014 19:00:27 +0800 Subject: [PATCH] Fixed a file information problem --- src/xmlcopyeditor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();