From f73ce2d47f60e050cb633a2d260ecfcc2a9ef74c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 28 Jun 2017 18:42:10 +0200 Subject: [PATCH] Reset idle_handler_id (fixes idle zoom -- bug in 265f52535a7) If pending_visual_change.pending was zero when calling idle_visual_changer the handler_id was never reset. and the idle-handler was never called again. --- gtk2_ardour/editor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 9095152f77..9750f58e9d 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -4596,6 +4596,8 @@ Editor::pre_render () int Editor::idle_visual_changer () { + pending_visual_change.idle_handler_id = -1; + if (pending_visual_change.pending == 0) { return 0; } @@ -4610,8 +4612,6 @@ Editor::idle_visual_changer () the last one. */ - pending_visual_change.idle_handler_id = -1; - if (visual_change_queued) { return 0; }