From 6c47b1583456588a909180217a6cc343f1e27dfd Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 18 May 2021 12:32:37 +0200 Subject: [PATCH] Follow-up of a5d5ceb30dfa0233c847c001c49a439057e3ffed - Fixed run on Windows --- src/slic3r/GUI/DoubleSlider.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/DoubleSlider.cpp b/src/slic3r/GUI/DoubleSlider.cpp index 0c30b0cb4..6d41e3c82 100644 --- a/src/slic3r/GUI/DoubleSlider.cpp +++ b/src/slic3r/GUI/DoubleSlider.cpp @@ -1084,6 +1084,8 @@ void Control::Ruler::update(wxWindow* win, const std::vector& values, do void Control::draw_ruler(wxDC& dc) { + if (m_values.empty()) + return; m_ruler.update(this->GetParent(), m_values, get_scroll_step()); int height, width;