From 8681d46fbcc366f613f63135ba0fada7d6f684fe Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Sat, 30 Sep 2023 07:41:49 -0500 Subject: [PATCH] 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" --- gtk2_ardour/editor_canvas.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index a08b0a7ac4..b64f87a5ab 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -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) {