1
0
mirror of https://github.com/aseprite/aseprite.git synced 2025-03-20 04:20:49 +00:00

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

@ -437,7 +437,7 @@ bool Timeline::onProcessMessage(Message* msg)
// tracked to the mouse's released). // tracked to the mouse's released).
if (m_clk_part == A_PART_SEPARATOR) { if (m_clk_part == A_PART_SEPARATOR) {
hot_part = m_clk_part; hot_part = m_clk_part;
m_separator_x = mousePos.x; m_separator_x = MAX(0, mousePos.x);
invalidate(); invalidate();
return true; return true;
} }