Fix rulers on intial display (fix item 1 of ticket #2740).
authorDavid Robillard <d@drobilla.net>
Tue, 9 Feb 2010 04:43:48 +0000 (04:43 +0000)
committerDavid Robillard <d@drobilla.net>
Tue, 9 Feb 2010 04:43:48 +0000 (04:43 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6662 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor.cc

index 69a2a0bc37da51d5fbbb4211d536b0c202c9af8d..ee42de7e48215b2ec1827b396cee0b0c8fa80148 100644 (file)
@@ -374,7 +374,7 @@ Editor::Editor ()
 
        zoom_focus = ZoomFocusLeft;
        set_zoom_focus (ZoomFocusLeft);
-       zoom_range_clock.ValueChanged.connect (sigc::mem_fun(*this, &Editor::zoom_adjustment_changed));
+       zoom_range_clock.ValueChanged.connect (sigc::mem_fun(*this, &Editor::zoom_adjustment_changed));
 
        bbt_label.set_name ("EditorTimeButton");
        bbt_label.set_size_request (-1, (int)timebar_height);
@@ -793,6 +793,8 @@ Editor::show_window ()
                        tv = (static_cast<TimeAxisView*>(*i));
                        tv->reset_height ();
                }
+
+               reset_zoom (frames_per_unit);
        }
 
        present ();