summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-11-25 01:39:25 +0000
committerCarl Hetherington <carl@carlh.net>2009-11-25 01:39:25 +0000
commit1c5d13938a9c6cae7041b1c2b70b63f82252d3d9 (patch)
tree330e676d40afc2fe8c6a6b9f681d95e2047cbfe2 /gtk2_ardour
parentc2a7ad07240bb70cb19417cc15415a28d44937b5 (diff)
Fix problems with summary when the session start marker is not at zero (#2924)
git-svn-id: svn://localhost/ardour2/branches/3.0@6169 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-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 6740ef92eb..0641bbff01 100644
--- a/gtk2_ardour/editor_summary.cc
+++ b/gtk2_ardour/editor_summary.cc
@@ -102,7 +102,7 @@ EditorSummary::on_expose_event (GdkEventExpose* event)
/* XXX: colour should be set from configuration file */
cairo_set_source_rgba (cr, 1, 0, 0, 1);
- double const p = _editor->playhead_cursor->current_frame * _x_scale;
+ double const p = (_editor->playhead_cursor->current_frame - _session->current_start_frame()) * _x_scale;
cairo_move_to (cr, p, 0);
cairo_line_to (cr, p, _height);
cairo_stroke (cr);
@@ -412,7 +412,7 @@ EditorSummary::set_editor (pair<double,double> const & x, pair<double, double> c
is merely pending but not executing. But c'est la vie.
*/
- _editor->reset_x_origin (x.first / _x_scale);
+ _editor->reset_x_origin (x.first / _x_scale + _session->current_start_frame ());
_editor->reset_y_origin (y.first / _y_scale);
double const nx = (