From 300d765f176cd7966b12bcd02643bce6063b5fb6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 29 Oct 2014 05:43:38 +0100 Subject: [PATCH] fix summary display (offset on-canvas rulers) --- gtk2_ardour/editor_summary.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc index fbe8240035..85aed8291f 100644 --- a/gtk2_ardour/editor_summary.cc +++ b/gtk2_ardour/editor_summary.cc @@ -490,7 +490,7 @@ EditorSummary::get_editor (pair* x, pair* y) con x->second = x->first + _editor->current_page_samples() * _x_scale; y->first = editor_y_to_summary (_editor->vertical_adjustment.get_value ()); - y->second = editor_y_to_summary (_editor->vertical_adjustment.get_value () + _editor->visible_canvas_height()); + y->second = editor_y_to_summary (_editor->vertical_adjustment.get_value () + _editor->visible_canvas_height() - _editor->get_trackview_group()->canvas_origin().y); } } @@ -855,7 +855,7 @@ void EditorSummary::set_editor_y (double const y) { double y1 = summary_y_to_editor (y); - double const eh = _editor->visible_canvas_height(); + double const eh = _editor->visible_canvas_height() - _editor->get_trackview_group()->canvas_origin().y; double y2 = y1 + eh; double const full_editor_height = _editor->_full_canvas_height;