Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2018-05-22 15:33:11 +0300
committerVojtech Kral <vojtech@kral.hk>2018-05-22 15:33:37 +0300
commit360b34944d830655f8d0966d2140a1d293b7b724 (patch)
treef38071bae6a32dfda84074812733aa71573a0ce5 /xs/src/slic3r/GUI/GUI.cpp
parent306d77559eafb742e1b10e091e5adf980694f6fd (diff)
ErrorDialog: Fix size and message encoding
Diffstat (limited to 'xs/src/slic3r/GUI/GUI.cpp')
-rw-r--r--xs/src/slic3r/GUI/GUI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs/src/slic3r/GUI/GUI.cpp b/xs/src/slic3r/GUI/GUI.cpp
index aad970236..b00813a71 100644
--- a/xs/src/slic3r/GUI/GUI.cpp
+++ b/xs/src/slic3r/GUI/GUI.cpp
@@ -607,7 +607,7 @@ void show_error(wxWindow* parent, const wxString& message) {
void show_error_id(int id, const std::string& message) {
auto *parent = id != 0 ? wxWindow::FindWindowById(id) : nullptr;
- show_error(parent, message);
+ show_error(parent, wxString::FromUTF8(message.data()));
}
void show_info(wxWindow* parent, const wxString& message, const wxString& title){