diff options
author | lecoanet | 2005-10-07 20:42:28 +0000 |
---|---|---|
committer | lecoanet | 2005-10-07 20:42:28 +0000 |
commit | b4ae8d199ed0036677a649c5609cf96f3fe909f8 (patch) | |
tree | 93b7d4df70828919118ed49567128e94fb220414 /generic | |
parent | 7f3a05dca923250b56f0205f160700899f20e186 (diff) | |
download | tkzinc-b4ae8d199ed0036677a649c5609cf96f3fe909f8.zip tkzinc-b4ae8d199ed0036677a649c5609cf96f3fe909f8.tar.gz tkzinc-b4ae8d199ed0036677a649c5609cf96f3fe909f8.tar.bz2 tkzinc-b4ae8d199ed0036677a649c5609cf96f3fe909f8.tar.xz |
Fixed a rounding problem causing an ugly text when alignment is center (GL).
Diffstat (limited to 'generic')
-rw-r--r-- | generic/Field.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/Field.c b/generic/Field.c index 3788885..ee812a1 100644 --- a/generic/Field.c +++ b/generic/Field.c @@ -603,7 +603,7 @@ ComputeFieldTextLocation(Field fptr, text_bbox->orig.x = bbox->corner.x - w - 2; break; default: - text_bbox->orig.x = (bbox->orig.x + bbox->corner.x - w) / 2.0; + text_bbox->orig.x = ZnNearestInt((bbox->orig.x + bbox->corner.x - w) / 2.0); break; } text_bbox->corner.x = text_bbox->orig.x + w; |