From c0efe4acf4511ff58d992170b5fb1ce7b3e15a11 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Tue, 29 May 2018 14:09:02 +0200 Subject: [PATCH] Fixed a crash --- xs/src/slic3r/GUI/GLCanvas3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/slic3r/GUI/GLCanvas3D.cpp b/xs/src/slic3r/GUI/GLCanvas3D.cpp index 406e8939c06..1c8d87d2c73 100644 --- a/xs/src/slic3r/GUI/GLCanvas3D.cpp +++ b/xs/src/slic3r/GUI/GLCanvas3D.cpp @@ -2172,7 +2172,7 @@ void GLCanvas3D::_render_legend_texture() const void GLCanvas3D::_render_layer_editing_overlay() const { - if ((m_volumes == nullptr) && (m_print == nullptr)) + if ((m_volumes == nullptr) || (m_print == nullptr)) return; GLVolume* volume = nullptr;