My bad - commit today for "Continuous Grab" fix ignored the comment that
authorTon Roosendaal <ton@blender.org>
Thu, 17 Jan 2013 15:27:58 +0000 (15:27 +0000)
committerTon Roosendaal <ton@blender.org>
Thu, 17 Jan 2013 15:27:58 +0000 (15:27 +0000)
bounds could be NULL :) Crash fixed.

source/blender/windowmanager/intern/wm_cursors.c

index 180b6b9c742b056055a68e83b8434b1eedd48c74..a1c7404a0314c250d025a60e5c94cc1b4d080a85 100644 (file)
@@ -191,10 +191,12 @@ void WM_cursor_grab_enable(wmWindow *win, int wrap, int hide, int bounds[4])
        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;