summaryrefslogtreecommitdiff
path: root/pdf/pdf_form.c
diff options
context:
space:
mode:
authorPaul Gardiner <paul@glidos.net>2012-06-21 15:16:47 +0100
committerPaul Gardiner <paul@glidos.net>2012-06-21 15:16:47 +0100
commit554d2a57c0daad11b0990d5d54f2437f862fef17 (patch)
tree35fb70a5ae558b8d83a3758252aa1fd6b32da550 /pdf/pdf_form.c
parentb24eab54d6b594c773d80e913c90872b86f6ab65 (diff)
downloadmupdf-554d2a57c0daad11b0990d5d54f2437f862fef17.tar.xz
Forms; Improve text positioning in single-line text widgets
This fixes bug 693126
Diffstat (limited to 'pdf/pdf_form.c')
-rw-r--r--pdf/pdf_form.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_form.c b/pdf/pdf_form.c
index 7669c071..8d8f598e 100644
--- a/pdf/pdf_form.c
+++ b/pdf/pdf_form.c
@@ -801,8 +801,8 @@ static fz_buffer *create_text_appearance(pdf_document *doc, fz_rect *bbox, fz_ma
else
{
tm = fz_identity;
- tm.e = 2.0;
- tm.f = 2.0 + fontsize * descent;
+ tm.e = rect.x0;
+ tm.f = rect.y1 - (height+(ascent-descent)*fontsize)/2.0;
switch(info->q)
{