diff options
author | Albert Astals Cid <aacid@kde.org> | 2008-10-04 00:35:46 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2008-10-04 00:35:46 +0200 |
commit | 7604e025038fee24c2cb3001f2100d5d1e48efe1 (patch) | |
tree | 928d293e742b0863655628007a4312160c098af2 /qt4 | |
parent | 450b21e4528a8e890d3dda37ecb0a68602f8efaa (diff) |
Fix Poppler::Link::linkArea for rotated pages
we suck :-( Fixes kde bug 172105
Diffstat (limited to 'qt4')
-rw-r--r-- | qt4/src/poppler-link-extractor.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt4/src/poppler-link-extractor.cc b/qt4/src/poppler-link-extractor.cc index 2a9bce6c..e9806b59 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@kde.org> + * Copyright (C) 2008, Albert Astals Cid <aacid@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()); } |