allow swap of column 0 with others

This commit is contained in:
rsc 2007-04-25 18:59:29 +00:00
parent 2bd7756a44
commit 9ec61f3ede

View file

@ -164,8 +164,6 @@ rowdragcol(Row *row, Column *c, int _0)
error("can't find column");
Found:
if(i == 0)
return;
p = mouse->xy;
if((abs(p.x-op.x)<5 && abs(p.y-op.y)<5))
return;
@ -182,6 +180,8 @@ rowdragcol(Row *row, Column *c, int _0)
colmousebut(c);
return;
}
if(i == 0)
return;
d = row->col[i-1];
if(p.x < d->r.min.x+80+Scrollwid)
p.x = d->r.min.x+80+Scrollwid;