[poppler] qt4/src

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Oct 3 15:38:09 PDT 2008


 qt4/src/poppler-link-extractor.cc |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 7604e025038fee24c2cb3001f2100d5d1e48efe1
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Oct 4 00:35:46 2008 +0200

    Fix Poppler::Link::linkArea for rotated pages
    
    we suck :-( Fixes kde bug 172105

diff --git a/qt4/src/poppler-link-extractor.cc b/qt4/src/poppler-link-extractor.cc
index 2a9bce6..e9806b5 100644
--- a/qt4/src/poppler-link-extractor.cc
+++ b/qt4/src/poppler-link-extractor.cc
@@ -1,5 +1,6 @@
 /* poppler-link-extractor_p.h: qt interface to poppler
  * Copyright (C) 2007-2008, Pino Toscano <pino at kde.org>
+ * Copyright (C) 2008, Albert Astals Cid <aacid at kde.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -36,6 +37,8 @@ LinkExtractorOutputDev::LinkExtractorOutputDev(PageData *data)
   ::Page *popplerPage = m_data->page;
   m_pageCropWidth = popplerPage->getCropWidth();
   m_pageCropHeight = popplerPage->getCropHeight();
+  if (popplerPage->getRotate() == 90 || popplerPage->getRotate() == 270)
+    qSwap(m_pageCropWidth, m_pageCropHeight);
   GfxState gfxState(72.0, 72.0, popplerPage->getCropBox(), popplerPage->getRotate(), gTrue);
   setDefaultCTM(gfxState.getCTM());
 }


More information about the poppler mailing list