summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_summary.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-10-29 05:43:38 +0100
committerRobin Gareus <robin@gareus.org>2014-10-29 12:06:20 +0100
commit300d765f176cd7966b12bcd02643bce6063b5fb6 (patch)
tree0abb68b84a944a1a2fc53a6d4956d68bd6b36896 /gtk2_ardour/editor_summary.cc
parentea26d70cadc86caaf4af73c2af54474de92fc94f (diff)
fix summary display (offset on-canvas rulers)
Diffstat (limited to 'gtk2_ardour/editor_summary.cc')
-rw-r--r--gtk2_ardour/editor_summary.cc4
1 files 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<double, double>* x, pair<double, double>* 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;