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
@ -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…
Reference in New Issue
Block a user