* fix for crash when mouse cursor changed areas. Not enough was tested, so sometimes...
authorNathan Letwory <nathan@letworyinteractive.com>
Mon, 14 Jan 2008 20:57:43 +0000 (20:57 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Mon, 14 Jan 2008 20:57:43 +0000 (20:57 +0000)
source/blender/editors/screen/screen_edit.c

index e53839d90457aa44d927f91db3cb33dd55fa83f6..1f0bd66062c0a15851b7015e9560920baf1c0ba1 100644 (file)
@@ -1225,7 +1225,7 @@ static int split_area_modal(bContext *C, wmOperator *op, wmEvent *event)
 
                        sa= screen_areahascursor(C->screen, event->x, event->y);
 
-                       if(sa && sd->sarea!=sa) {
+                       if(sa && sd->sarea!=sa && sd->narea!=sa) {
                                sold= sd->sarea;
                                printf("In other area now\n");
                                split_joincurrent(C, sd);