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:
parent
6f7ee67c71
commit
09bd88c9df
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user