Kirigami: set request's normalized rect

We used to give a null rectangle and okular didn't render anything.

Reviewed by Albert Astals
This commit is contained in:
Aleix Pol 2018-05-13 16:11:33 +02:00
parent cf4bb5e3b1
commit 1a170e81df

View file

@ -339,6 +339,7 @@ void PageItem::paint()
{
auto request = new Okular::PixmapRequest(observer, m_viewPort.pageNumber, width() * dpr, height() * dpr, priority, Okular::PixmapRequest::NoFeature);
request->setNormalizedRect(Okular::NormalizedRect(0,0,1,1));
const Okular::Document::PixmapRequestFlag prf = m_isThumbnail ? Okular::Document::NoOption : Okular::Document::RemoveAllPrevious;
m_documentItem.data()->document()->requestPixmaps({request}, prf);
}