From 8fa8e7d8142b545cd667b913347eb88a150dfba4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 20 Dec 2021 21:22:21 +0100 Subject: [PATCH] Resolve yet more ambiguous `Rect` (fixes macOS build) --- gtk2_ardour/audio_clip_editor.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/audio_clip_editor.cc b/gtk2_ardour/audio_clip_editor.cc index f2dac45bdb..ffaa3e52db 100644 --- a/gtk2_ardour/audio_clip_editor.cc +++ b/gtk2_ardour/audio_clip_editor.cc @@ -462,14 +462,14 @@ AudioClipEditor::on_size_allocate (Gtk::Allocation& alloc) frame->set (r); const double ruler_height = 25.; - ruler->set (Rect (2, 2, alloc.get_width() - 4, ruler_height)); + ruler->set (ArdourCanvas::Rect (2, 2, alloc.get_width() - 4, ruler_height)); const double scroll_bar_height = 10.; const double scroll_bar_width = alloc.get_width () - 2; const double scroll_bar_handle_left = scroll_bar_width * scroll_fraction; - scroll_bar_trough->set (Rect (1, alloc.get_height () - scroll_bar_height, scroll_bar_width, alloc.get_height ())); - scroll_bar_handle->set (Rect (scroll_bar_handle_left, scroll_bar_trough->get ().y0 + 1, scroll_bar_handle_left + 30., scroll_bar_trough->get ().y1 - 1)); + scroll_bar_trough->set (ArdourCanvas::Rect (1, alloc.get_height () - scroll_bar_height, scroll_bar_width, alloc.get_height ())); + scroll_bar_handle->set (ArdourCanvas::Rect (scroll_bar_handle_left, scroll_bar_trough->get ().y0 + 1, scroll_bar_handle_left + 30., scroll_bar_trough->get ().y1 - 1)); position_lines ();