bugfix for "save as". see #177
This commit is contained in:
parent
bc01b2922c
commit
12998eb10f
|
@ -797,7 +797,7 @@ void MainWindow::onMenuFileSaveAs(wxCommandEvent &event) {
|
||||||
auto_ptr<wchar_t> wstr(Ansi2WideString(currentFile.c_str()));
|
auto_ptr<wchar_t> wstr(Ansi2WideString(currentFile.c_str()));
|
||||||
currentFile = utf8_encode(wstr.get());
|
currentFile = utf8_encode(wstr.get());
|
||||||
#elif wxCHECK_VERSION(2, 9, 1)
|
#elif wxCHECK_VERSION(2, 9, 1)
|
||||||
currentFile = fileDialog->GetPath().ToStdString();
|
currentFile = fd.GetPath().ToStdString();
|
||||||
#else
|
#else
|
||||||
const wxWX2MBbuf tmp_buf = wxConvCurrent->cWX2MB(fd.GetPath());
|
const wxWX2MBbuf tmp_buf = wxConvCurrent->cWX2MB(fd.GetPath());
|
||||||
currentFile = tmp_buf;
|
currentFile = tmp_buf;
|
||||||
|
|
Loading…
Reference in New Issue