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.
This commit is contained in:
Ell 2019-01-12 04:48:17 -05:00
parent f4750a0ae7
commit 2256ab22f7
1 changed files with 6 additions and 0 deletions

View File

@ -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,