Prevent crash when dragging window to the bottom of the column it's already in

This commit is contained in:
sqweek 2007-09-27 23:46:50 +08:00
parent dc1b8042ab
commit 88277eb6c7
1 changed files with 4 additions and 2 deletions

View File

@ -289,8 +289,10 @@ horiz:
resize_frame(f->aprev, f->aprev->r);
}
detach_from_area(f);
attach_to_area(fw->ra, f);
if (fw->ra != f->area) {
detach_from_area(f);
attach_to_area(fw->ra, f);
}
if(f->aprev) {
f->aprev->r.max.y = fw->fr.min.y;