13
0

Fix crash when resizing a track quickly.

Triggered by resize drag an automation track very quickly upwards to shrink it
to the minimum.  Caused by unsigned integer underflow.
This commit is contained in:
David Robillard 2014-12-06 17:46:12 -05:00
parent 6f7ee67c71
commit 09bd88c9df
2 changed files with 3 additions and 3 deletions

View File

@ -406,9 +406,9 @@ TimeAxisView::controls_ebox_button_press (GdkEventButton* event)
}
void
TimeAxisView::idle_resize (uint32_t h)
TimeAxisView::idle_resize (int32_t h)
{
set_height (h);
set_height (std::max(0, h));
}

View File

@ -124,7 +124,7 @@ class TimeAxisView : public virtual AxisView
uint32_t current_height() const { return height; }
void idle_resize (uint32_t);
void idle_resize (int32_t);
virtual guint32 show_at (double y, int& nth, Gtk::VBox *parent);
virtual void hide ();