From 3a01bcf3086147dd9dd66b94fe74db226c2a53d5 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 20 Dec 2016 08:00:08 +0100 Subject: [PATCH] fix: Apply x position once to action blocks --- src/components/renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/renderer.cpp b/src/components/renderer.cpp index d785cb4a..89231328 100644 --- a/src/components/renderer.cpp +++ b/src/components/renderer.cpp @@ -663,8 +663,8 @@ bool renderer::on(const action_end& evt) { break; } - action->start_x += m_bar.pos.x + m_rect.x; - action->end_x += m_bar.pos.x + m_rect.x; + action->start_x += m_rect.x; + action->end_x += m_rect.x; m_log.trace_x("renderer: action_end(%i, %s, %i)", static_cast(btn), action->command, action->width()); }