Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-01-28 23:38:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-28 23:38:12 +0300
commit462e7cdb47e643adff5d104b9271144d1ff80aa1 (patch)
tree539657b5f2874bda93610eabb9a074c916a9baeb /source/blender/editors/space_image
parentb81cb0200ba11a1f656712fd521c47e8e3a192b8 (diff)
crash with viewing histogram on a blank image
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/space_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index 2a8158de79b..5a584782237 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -818,8 +818,8 @@ static void image_scope_area_draw(const bContext *C, ARegion *ar)
SpaceImage *sima= CTX_wm_space_image(C);
void *lock;
ImBuf *ibuf= ED_space_image_acquire_buffer(sima, &lock);
-
- histogram_update(&sima->hist, ibuf);
+ if(ibuf)
+ histogram_update(&sima->hist, ibuf);
ED_space_image_release_buffer(sima, lock);
ED_region_panels(C, ar, 1, NULL, -1);