diff --git a/source/blender/src/editsima.c b/source/blender/src/editsima.c index d0745ef1fe2..d6ca55731c1 100644 --- a/source/blender/src/editsima.c +++ b/source/blender/src/editsima.c @@ -830,7 +830,7 @@ static void getSpaceImageDimension(SpaceImage *sima, float *xy) z = sima->zoom; - if (img) { + if (img && img->ibuf) { xy[0] = img->ibuf->x * z; xy[1] = img->ibuf->y * z; } else {