[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26378] trunk/blender/source/blender/ editors/space_image/space_image.c: crash with viewing histogram on a blank image
Campbell Barton
ideasman42 at gmail.com
Thu Jan 28 21:38:12 CET 2010
Revision: 26378
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26378
Author: campbellbarton
Date: 2010-01-28 21:38:12 +0100 (Thu, 28 Jan 2010)
Log Message:
-----------
crash with viewing histogram on a blank image
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_image/space_image.c
Modified: trunk/blender/source/blender/editors/space_image/space_image.c
===================================================================
--- trunk/blender/source/blender/editors/space_image/space_image.c 2010-01-28 19:54:06 UTC (rev 26377)
+++ trunk/blender/source/blender/editors/space_image/space_image.c 2010-01-28 20:38:12 UTC (rev 26378)
@@ -818,8 +818,8 @@
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);
More information about the Bf-blender-cvs
mailing list