Commit bc3847e8 authored by Ell's avatar Ell

app: avoid allocating empty tempbuf for drawable previews

In gimp_view_renderer_drawable_render(), make sure the preview size
is always at least 1x1.

Fixes commit 8009ea34.

(cherry picked from commit 963322fd)
parent a4894b54
......@@ -275,6 +275,9 @@ gimp_view_renderer_drawable_render (GimpViewRenderer *renderer,
dst_height = view_height;
dst_width = MAX (dst_width, 1);
dst_height = MAX (dst_height, 1);
if (! empty)
async = gimp_drawable_get_sub_preview_async (drawable,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment