From fdc1fd1e9ca406f9075d91bd84707ea3147e5a67 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 3 Sep 2005 13:28:14 +0000 Subject: [PATCH] Fix for bug #2974: Circle select in uv editor crashed when an image was assigned but not loaded. --- source/blender/src/editsima.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {