[poppler] qt4/src

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Dec 27 17:59:06 PST 2008


 qt4/src/poppler-form.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit effb32658019e09dc86c017e39154fd554fc94f8
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sun Dec 28 02:56:30 2008 +0100

    Form Rects are against the cropbox, not the media box
    
    Fixes second pdf at kde bug 161327

diff --git a/qt4/src/poppler-form.cc b/qt4/src/poppler-form.cc
index d9ef0bc..f05d0e0 100644
--- a/qt4/src/poppler-form.cc
+++ b/qt4/src/poppler-form.cc
@@ -41,7 +41,7 @@ FormField::FormField(FormFieldData &dd)
   double left, top, right, bottom;
   m_formData->fm->getRect(&left, &bottom, &right, &top);
   // build a normalized transform matrix for this page at 100% scale
-  GfxState gfxState( 72.0, 72.0, m_formData->page->getMediaBox(), rotation, gTrue );
+  GfxState gfxState( 72.0, 72.0, m_formData->page->getCropBox(), rotation, gTrue );
   double * gfxCTM = gfxState.getCTM();
   double MTX[6];
   double pageWidth = m_formData->page->getCropWidth();


More information about the poppler mailing list