trivial zoom focus fix

nick mainsbridge <[email protected]>
Newsgroups gmane.comp.audio.ardour.devel
Message-ID <CAJF4RZesqGX6i1ctLa=eM=EK1E8SwUhv1ymaw92WEi8Ags+R_A@mail.gmail.com>
Hi all,

this patch fixes the zoom focus state not being displayed on creating a new
session.

nick

_______________________________________________
ardour-dev mailing list
[email protected]
http://lists.ardour.org/listinfo.cgi/ardour-dev-ardour.org
zoom_focus_fix.diff (application/octet-stream, 901 B)
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index a041889..fc4b6f4 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -365,6 +365,7 @@ Editor::Editor ()
 	location_loop_color = ARDOUR_UI::config()->canvasvar_LocationLoop.get();
 	location_punch_color = ARDOUR_UI::config()->canvasvar_LocationPunch.get();
 
+	zoom_focus = ZoomFocusLeft;
 	_edit_point = EditAtMouse;
 	_internal_editing = false;
 	current_canvas_cursor = 0;
@@ -373,8 +374,6 @@ Editor::Editor ()
 
 	_scroll_callbacks = 0;
 
-	zoom_focus = ZoomFocusLeft;
-	set_zoom_focus (ZoomFocusLeft);
 	zoom_range_clock->ValueChanged.connect (sigc::mem_fun(*this, &Editor::zoom_adjustment_changed));
 
 	bbt_label.set_name ("EditorRulerLabel");
@@ -635,6 +634,7 @@ Editor::Editor ()
 
 	setup_toolbar ();
 
+	set_zoom_focus (zoom_focus);
 	_snap_type = SnapToBeat;
 	set_snap_to (_snap_type);
 	_snap_mode = SnapOff;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.