Reset idle_handler_id (fixes idle zoom -- bug in 265f52535a)

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.
This commit is contained in:
Robin Gareus 2017-06-28 18:42:10 +02:00
parent d3510b5606
commit f73ce2d47f

View file

@ -4596,6 +4596,8 @@ Editor::pre_render ()
int int
Editor::idle_visual_changer () Editor::idle_visual_changer ()
{ {
pending_visual_change.idle_handler_id = -1;
if (pending_visual_change.pending == 0) { if (pending_visual_change.pending == 0) {
return 0; return 0;
} }
@ -4610,8 +4612,6 @@ Editor::idle_visual_changer ()
the last one. the last one.
*/ */
pending_visual_change.idle_handler_id = -1;
if (visual_change_queued) { if (visual_change_queued) {
return 0; return 0;
} }