Avoid negative values for Timeline::m_separator_x (so the user can expand it again)

This commit is contained in:
David Capello 2013-12-22 16:35:44 -03:00
parent 076be1f22f
commit ca7f6a055f

View File

@ -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;
}