From dd34aef643a9cdd14a4db0ce77f0c3813e25c62c Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Wed, 25 Mar 2020 15:30:25 +0100 Subject: [PATCH] Follow-up of bfbcd45209cdcaa0e340780294dfe28efbbf0e96 -> completed fix --- src/slic3r/GUI/GLCanvas3D.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index ad8579e02c..cfd5e1e11d 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -4229,7 +4229,8 @@ void GLCanvas3D::update_ui_from_settings() BOOST_LOG_TRIVIAL(debug) << "GLCanvas3D: Scaling factor: " << new_scaling; #if ENABLE_NON_STATIC_CANVAS_MANAGER - wxGetApp().plater()->get_camera().set_zoom(camera.get_zoom() * new_scaling / orig_scaling); + Camera& camera = wxGetApp().plater()->get_camera(); + camera.set_zoom(camera.get_zoom() * new_scaling / orig_scaling); #else m_camera.set_zoom(m_camera.get_zoom() * new_scaling / orig_scaling); #endif // ENABLE_NON_STATIC_CANVAS_MANAGER