fix summary display (offset on-canvas rulers)
This commit is contained in:
parent
ea26d70cad
commit
300d765f17
@ -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;
|
x->second = x->first + _editor->current_page_samples() * _x_scale;
|
||||||
|
|
||||||
y->first = editor_y_to_summary (_editor->vertical_adjustment.get_value ());
|
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)
|
EditorSummary::set_editor_y (double const y)
|
||||||
{
|
{
|
||||||
double y1 = summary_y_to_editor (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 y2 = y1 + eh;
|
||||||
|
|
||||||
double const full_editor_height = _editor->_full_canvas_height;
|
double const full_editor_height = _editor->_full_canvas_height;
|
||||||
|
Loading…
Reference in New Issue
Block a user