From 12998eb10f6447ac89a45d1e6d76f17946647b7a Mon Sep 17 00:00:00 2001 From: titiger Date: Mon, 18 Dec 2017 01:43:29 +0100 Subject: [PATCH] bugfix for "save as". see #177 --- source/glest_map_editor/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_map_editor/main.cpp b/source/glest_map_editor/main.cpp index 6ca1560a1..dfad0aeb9 100644 --- a/source/glest_map_editor/main.cpp +++ b/source/glest_map_editor/main.cpp @@ -797,7 +797,7 @@ void MainWindow::onMenuFileSaveAs(wxCommandEvent &event) { auto_ptr wstr(Ansi2WideString(currentFile.c_str())); currentFile = utf8_encode(wstr.get()); #elif wxCHECK_VERSION(2, 9, 1) - currentFile = fileDialog->GetPath().ToStdString(); + currentFile = fd.GetPath().ToStdString(); #else const wxWX2MBbuf tmp_buf = wxConvCurrent->cWX2MB(fd.GetPath()); currentFile = tmp_buf;