From c3b1eca2c73ce5c206ebe3813e4e9a339bbf2f11 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 406e8939c0..1c8d87d2c7 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;