From ca7f6a055f665ead412d53b717648c067dcc83ac Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 22 Dec 2013 16:35:44 -0300 Subject: [PATCH] Avoid negative values for Timeline::m_separator_x (so the user can expand it again) --- src/app/ui/timeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/ui/timeline.cpp b/src/app/ui/timeline.cpp index a59b09f2b..5d885e8c0 100644 --- a/src/app/ui/timeline.cpp +++ b/src/app/ui/timeline.cpp @@ -437,7 +437,7 @@ bool Timeline::onProcessMessage(Message* msg) // tracked to the mouse's released). if (m_clk_part == A_PART_SEPARATOR) { hot_part = m_clk_part; - m_separator_x = mousePos.x; + m_separator_x = MAX(0, mousePos.x); invalidate(); return true; }