mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
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
2 changed files with 3 additions and 3 deletions
|
|
@ -406,9 +406,9 @@ TimeAxisView::controls_ebox_button_press (GdkEventButton* event)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
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; }
|
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 guint32 show_at (double y, int& nth, Gtk::VBox *parent);
|
||||||
virtual void hide ();
|
virtual void hide ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue