diff options
author | YuSanka <yusanka@gmail.com> | 2018-06-25 13:27:42 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2018-06-25 13:27:42 +0300 |
commit | 318212f47594df0b2b081c90ac00a144c64639b6 (patch) | |
tree | 374eb0d6d0b5e53f9adc22f353006455273c6183 /xs/src | |
parent | 362a9d8edad4ba02ea476f18428b2dd1a12f5fe6 (diff) |
Fixed crashing-bug after language changing (detected under Debug)
Diffstat (limited to 'xs/src')
-rw-r--r-- | xs/src/slic3r/GUI/GUI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xs/src/slic3r/GUI/GUI.cpp b/xs/src/slic3r/GUI/GUI.cpp index e2f3925fc..c1f8adaf1 100644 --- a/xs/src/slic3r/GUI/GUI.cpp +++ b/xs/src/slic3r/GUI/GUI.cpp @@ -56,6 +56,7 @@ #include "../Utils/PresetUpdater.hpp" #include "../Config/Snapshot.hpp" +#include "3DScene.hpp" namespace Slic3r { namespace GUI { @@ -378,6 +379,7 @@ void add_config_menu(wxMenuBar *menu, int event_preferences_changed, int event_l save_language(); show_info(g_wxTabPanel, _(L("Application will be restarted")), _(L("Attention!"))); if (event_language_change > 0) { + _3DScene::remove_all_canvases();// remove all canvas before recreate GUI wxCommandEvent event(event_language_change); g_wxApp->ProcessEvent(event); } |