mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
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:
parent
cf4bb5e3b1
commit
1a170e81df
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue