Fix overflow within libgnomecanvas when passing in a coordinate > INT_MAX. Fixes #3370.
git-svn-id: svn://localhost/ardour2/branches/3.0@7864 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
cc9dabf882
commit
fd2a9ccdad
@ -92,7 +92,10 @@ AutomationTimeAxisView::AutomationTimeAxisView (Session* s, boost::shared_ptr<Ro
|
||||
_base_rect = new SimpleRect(*_canvas_display);
|
||||
_base_rect->property_x1() = 0.0;
|
||||
_base_rect->property_y1() = 0.0;
|
||||
_base_rect->property_x2() = LONG_MAX - 2;
|
||||
/** gnomecanvas sometimes converts this value to int or adds 2 to it, so it must be
|
||||
set correctly to avoid overflow.
|
||||
*/
|
||||
_base_rect->property_x2() = INT_MAX - 2;
|
||||
_base_rect->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_AutomationTrackOutline.get();
|
||||
|
||||
/* outline ends and bottom */
|
||||
|
Loading…
Reference in New Issue
Block a user