From da26cfb14fb43c64f79495c5eedadb327496b083 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Wed, 14 Aug 2019 21:26:30 +0800 Subject: [PATCH] wxFileDialog expects a file name rather than a path (Jairo Grateron) --- src/xmlcopyeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmlcopyeditor.cpp b/src/xmlcopyeditor.cpp index 3a84362..7dddaec 100644 --- a/src/xmlcopyeditor.cpp +++ b/src/xmlcopyeditor.cpp @@ -3570,7 +3570,7 @@ void MyFrame::saveAs() return; wxString defaultFile, defaultDir; - defaultFile = doc->getFullFileName(); + defaultFile = doc->getShortFileName(); defaultDir = doc->getDirectory(); if ( defaultDir.empty() ) defaultDir = mLastDir;