From 593c397b1915fe1784645e5f2898c42918823e6d Mon Sep 17 00:00:00 2001 From: David Kocik Date: Sat, 19 Dec 2020 09:22:40 +0100 Subject: Missing init() call at notification render --- src/slic3r/GUI/NotificationManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/slic3r/GUI/NotificationManager.cpp') diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp index 8ed206273..abb2d6115 100644 --- a/src/slic3r/GUI/NotificationManager.cpp +++ b/src/slic3r/GUI/NotificationManager.cpp @@ -146,6 +146,10 @@ NotificationManager::PopNotification::PopNotification(const NotificationData &n, #if ENABLE_NEW_NOTIFICATIONS_FADE_OUT void NotificationManager::PopNotification::render(GLCanvas3D& canvas, float initial_y, bool move_from_overlay, float overlay_width) { + if (!m_initialized) { + init(); + } + if (m_hidden) { m_top_y = initial_y - GAP_WIDTH; return; -- cgit v1.2.3