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

New commits:
commit 7604e025038fee24c2cb3001f2100d5d1e48efe1
Author: Albert Astals Cid <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
+ * Copyright (C) 2008, Albert Astals Cid <[EMAIL PROTECTED]>
  *
  * 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());
 }
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to