app: in GimpProjection, avoid invalidating preview on flush while rendering

In GimpProjection, avoid erroneously invalidating the projectable's
preview when flushing the projection and there's nothing to be
flushed, if the chunk renderer is still running, and hence the
projection is not fully rendered yet.
This commit is contained in:
Ell 2019-09-04 12:51:27 +03:00
parent 564afeda8b
commit 49bbf13911
1 changed files with 1 additions and 1 deletions

View File

@ -676,7 +676,7 @@ gimp_projection_flush_whenever (GimpProjection *proj,
gimp_projection_chunk_render_start (proj); gimp_projection_chunk_render_start (proj);
} }
} }
else if (! now && proj->priv->invalidate_preview) else if (! now && ! proj->priv->iter && proj->priv->invalidate_preview)
{ {
/* invalidate the preview here since it is constructed from /* invalidate the preview here since it is constructed from
* the projection * the projection