diff options
author | Robin Gareus <robin@gareus.org> | 2017-06-28 18:42:10 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-06-28 18:45:15 +0200 |
commit | f73ce2d47f60e050cb633a2d260ecfcc2a9ef74c (patch) | |
tree | 0f656b9d5777c74a489b9891f8d9c349d31f560c /gtk2_ardour/editor.cc | |
parent | d3510b56068542b970e82d9a22f1802cd75a3ecb (diff) |
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.
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 4 |
1 files 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; } |