From 2256ab22f755dc181d86c193380399d54b08ca4c Mon Sep 17 00:00:00 2001 From: Ell Date: Sat, 12 Jan 2019 04:48:17 -0500 Subject: [PATCH] app: in the gradient tool, halt gradient editor before committing filter In the gradient tool, halt the gradient editor before committing the filter, so that its image-flush idle source is removed before applying the operation, to avoid flushing the image, and hence restarting its projection rendering, during application. --- app/tools/gimpgradienttool.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/tools/gimpgradienttool.c b/app/tools/gimpgradienttool.c index 741a68e22d..cbc7cc5c95 100644 --- a/app/tools/gimpgradienttool.c +++ b/app/tools/gimpgradienttool.c @@ -725,6 +725,12 @@ gimp_gradient_tool_commit (GimpGradientTool *gradient_tool) if (gradient_tool->filter) { + /* halt the editor before committing the filter so that the image-flush + * idle source is removed, to avoid flushing the image, and hence + * restarting the projection rendering, while applying the filter. + */ + gimp_gradient_tool_editor_halt (gradient_tool); + gimp_tool_control_push_preserve (tool->control, TRUE); gimp_drawable_filter_commit (gradient_tool->filter,