* fix for crash when mouse cursor changed areas. Not enough was tested, so sometimes we got invalid edges.

This commit is contained in:
Nathan Letwory
2008-01-14 20:57:43 +00:00
parent c89b96645e
commit 8a7558a4fb

View 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);