From ce06bb08aa51b7e1ed6d62cb30374283eea27ce2 Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Tue, 25 Jul 2023 09:51:59 +0800 Subject: [PATCH] FIX: crash when the text has only spaces STUDIO-3661 Change-Id: Ib433e3afbe8b161f42b0d907e9d78dbc93569cdf --- src/slic3r/GUI/Gizmos/GLGizmoText.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoText.cpp b/src/slic3r/GUI/Gizmos/GLGizmoText.cpp index 0bd02648f..907848e50 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoText.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoText.cpp @@ -1471,6 +1471,9 @@ void GLGizmoText::generate_text_volume(bool is_temp) mesh.merge(sub_mesh); } + if (mesh.empty()) + return; + Plater *plater = wxGetApp().plater(); if (!plater) return;