[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53881] trunk/blender/source/blender/ windowmanager/intern/wm_cursors.c: My bad - commit today for " Continuous Grab" fix ignored the comment that
Ton Roosendaal
ton at blender.org
Thu Jan 17 16:27:59 CET 2013
Revision: 53881
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53881
Author: ton
Date: 2013-01-17 15:27:58 +0000 (Thu, 17 Jan 2013)
Log Message:
-----------
My bad - commit today for "Continuous Grab" fix ignored the comment that
bounds could be NULL :) Crash fixed.
Modified Paths:
--------------
trunk/blender/source/blender/windowmanager/intern/wm_cursors.c
Modified: trunk/blender/source/blender/windowmanager/intern/wm_cursors.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_cursors.c 2013-01-17 13:29:32 UTC (rev 53880)
+++ trunk/blender/source/blender/windowmanager/intern/wm_cursors.c 2013-01-17 15:27:58 UTC (rev 53881)
@@ -191,10 +191,12 @@
float fac = GHOST_GetNativePixelSize(win->ghostwin);
/* in case pixel coords differ from window/mouse coords */
- bounds[0] /= fac;
- bounds[1] /= fac;
- bounds[2] /= fac;
- bounds[3] /= fac;
+ if (bounds) {
+ bounds[0] /= fac;
+ bounds[1] /= fac;
+ bounds[2] /= fac;
+ bounds[3] /= fac;
+ }
if (hide) mode = GHOST_kGrabHide;
else if (wrap) mode = GHOST_kGrabWrap;
More information about the Bf-blender-cvs
mailing list