diff options
author | David Kocik <kocikdav@gmail.com> | 2020-12-19 11:22:40 +0300 |
---|---|---|
committer | David Kocik <kocikdav@gmail.com> | 2020-12-19 11:22:40 +0300 |
commit | 593c397b1915fe1784645e5f2898c42918823e6d (patch) | |
tree | 7de38706909d8469b6ee270103537ad92bbd5585 /src/slic3r/GUI/NotificationManager.cpp | |
parent | 2fa5828023c1bc9a7efa77b3da135decd284b418 (diff) |
Missing init() call at notification render
Diffstat (limited to 'src/slic3r/GUI/NotificationManager.cpp')
-rw-r--r-- | src/slic3r/GUI/NotificationManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |