Fix segfault on startup caused by previous patch.

git-svn-id: svn://localhost/ardour2/branches/3.0@6463 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-01-06 02:07:00 +00:00
parent 8418f8cea6
commit 04bb3de7a5

View file

@ -4325,13 +4325,6 @@ Editor::idle_visual_changer ()
update_tempo_based_rulers ();
}
if (p & VisualChange::TimeOrigin) {
// Add a little extra so we can see the end marker
nframes64_t e = 0;
if (_session) {
e = _session->current_end_frame ();
}
e += current_page_frames () / 10;
horizontal_adjustment.set_upper (e / frames_per_unit);
horizontal_adjustment.set_value (pending_visual_change.time_origin / frames_per_unit);
}
if (p & VisualChange::YOrigin) {