Skip to content

Commit

Permalink
Fixed 'PDF background missing' text showing (#3350)
Browse files Browse the repository at this point in the history
Stops the 'PDF background missing' warning text from being shown when a
transparent background image is used.
  • Loading branch information
ronandalton committed Aug 31, 2021
1 parent aca2018 commit f41f7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control/jobs/RenderJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void RenderJob::run() {
int height = this->view->page->getHeight();

bool backgroundVisible = this->view->page->isLayerVisible(0);
if (backgroundVisible) {
if (backgroundVisible && this->view->page->getBackgroundType().isPdfPage()) {
PdfView::drawPage(this->view->xournal->getCache(), popplerPage, cr2, zoom, width, height);
}
localView.drawPage(this->view->page, cr2, false);
Expand Down

0 comments on commit f41f7e3

Please sign in to comment.