allow swap of column 0 with others
This commit is contained in:
parent
2bd7756a44
commit
9ec61f3ede
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue