mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 23:46:20 +01:00
fix the case where the grid-tool stopped working when you vertically scroll the canvas
there is no need to calculate the size of the grid_zone, just make it "huge"
This commit is contained in:
parent
f504eba0fe
commit
8681d46fbc
1 changed files with 1 additions and 3 deletions
|
|
@ -266,7 +266,7 @@ Editor::initialize_canvas ()
|
|||
_canvas_drop_zone->set_outline (false);
|
||||
_canvas_drop_zone->Event.connect (sigc::mem_fun (*this, &Editor::canvas_drop_zone_event));
|
||||
|
||||
_canvas_grid_zone = new ArdourCanvas::Rectangle (hv_scroll_group, ArdourCanvas::Rect (0.0, 0.0, ArdourCanvas::COORD_MAX, 0.0));
|
||||
_canvas_grid_zone = new ArdourCanvas::Rectangle (hv_scroll_group, ArdourCanvas::Rect (0.0, 0.0, ArdourCanvas::COORD_MAX, ArdourCanvas::COORD_MAX));
|
||||
/* this thing is transparent */
|
||||
_canvas_grid_zone->set_fill (false);
|
||||
_canvas_grid_zone->set_outline (false);
|
||||
|
|
@ -342,8 +342,6 @@ Editor::track_canvas_viewport_size_allocated ()
|
|||
|
||||
_canvas_drop_zone->set_y1 (_canvas_drop_zone->y0() + (_visible_canvas_height - 20.0));
|
||||
|
||||
_canvas_grid_zone->set_y1 (_visible_canvas_height);
|
||||
|
||||
// SHOWTRACKS
|
||||
|
||||
if (height_changed) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue