mirror of
https://invent.kde.org/graphics/okular
synced 2024-07-04 16:48:48 +00:00
DVI: use actual page size
This commit is contained in:
parent
a218085bd6
commit
cac31c3aad
|
@ -229,7 +229,6 @@ Okular::TextPage *DviGenerator::textPage(Okular::TextRequest *request)
|
|||
|
||||
qCDebug(OkularDviDebug);
|
||||
dviPageInfo *pageInfo = new dviPageInfo();
|
||||
pageSize ps;
|
||||
|
||||
pageInfo->width = page->width();
|
||||
pageInfo->height = page->height();
|
||||
|
@ -244,7 +243,7 @@ Okular::TextPage *DviGenerator::textPage(Okular::TextRequest *request)
|
|||
Okular::TextPage *ktp = nullptr;
|
||||
if (m_dviRenderer) {
|
||||
SimplePageSize s = m_dviRenderer->sizeOfPage(pageInfo->pageNumber);
|
||||
pageInfo->resolution = (double)(pageInfo->width) / ps.width().getLength_in_inch();
|
||||
pageInfo->resolution = (double)(pageInfo->width) / s.width().getLength_in_inch();
|
||||
|
||||
m_dviRenderer->getText(pageInfo);
|
||||
lock.unlock();
|
||||
|
|
Loading…
Reference in New Issue
Block a user