From c930af038b8d8e5a6bf444e50e8e55f363dff2ee Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 23 May 2024 15:35:04 +0200 Subject: [PATCH] DoubleSlider: Fixed a preview of estimated printer times --- src/slic3r/GUI/DoubleSlider.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/slic3r/GUI/DoubleSlider.cpp b/src/slic3r/GUI/DoubleSlider.cpp index 96313e19b1..333e833bef 100644 --- a/src/slic3r/GUI/DoubleSlider.cpp +++ b/src/slic3r/GUI/DoubleSlider.cpp @@ -440,8 +440,7 @@ void Control::SetLayersTimes(const std::vector& layers_times) { m_is_wipe_tower = false; m_layers_times = layers_times; - for (size_t i = 1; i < m_layers_times.size(); i++) - m_layers_times[i] += m_layers_times[i - 1]; + std::copy(layers_times.begin(), layers_times.end(), m_layers_times.begin()); } void Control::SetDrawMode(bool is_sla_print, bool is_sequential_print)