From 71a4796dc3dbf8a7fe1df5c5d7acea388b40eae0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 22 Aug 2010 16:28:26 +0000 Subject: forward port of 7539 from 2.x git-svn-id: svn://localhost/ardour2/branches/3.0@7667 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_tempodisplay.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/editor_tempodisplay.cc') diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index edfaee3694..048c0d2ccb 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -45,6 +45,7 @@ #include "time_axis_view.h" #include "ardour_ui.h" #include "tempo_lines.h" +#include "utils.h" #include "i18n.h" @@ -189,7 +190,7 @@ Editor::draw_measures () } if (tempo_lines == 0) { - tempo_lines = new TempoLines(*track_canvas, time_line_group, physical_screen_height); + tempo_lines = new TempoLines(*track_canvas, time_line_group, physical_screen_height(get_window())); } tempo_lines->draw(*current_bbt_points, frames_per_unit); -- cgit v1.2.3