diff options
Diffstat (limited to 'libtk/canvu.c')
| -rw-r--r-- | libtk/canvu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libtk/canvu.c b/libtk/canvu.c index 8671a11a..9281303d 100644 --- a/libtk/canvu.c +++ b/libtk/canvu.c @@ -338,16 +338,14 @@ tkcvsanchor(Point dp, int w, int h, int anchor) if(anchor & Tknorth) o.y = dp.y; - else - if(anchor & Tksouth) + else if(anchor & Tksouth) o.y = dp.y - h; else o.y = dp.y - h/2; if(anchor & Tkwest) o.x = dp.x; - else - if(anchor & Tkeast) + else if(anchor & Tkeast) o.x = dp.x - w; else o.x = dp.x - w/2; |
