[poppler] Branch 'poppler-0.10' - qt4/src

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


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

New commits:
commit 25cf8d17064371899d7cfbec39ce87bee8ea2c81
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 772cdd9..fce584a 100644
--- a/qt4/src/poppler-form.cc
+++ b/qt4/src/poppler-form.cc
@@ -40,7 +40,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