Skip to content

Commit

Permalink
viewertexteditor: ensure page size is synced with transparent clone
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmattkc committed Feb 22, 2023
1 parent fbcc4be commit c890858
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/widget/viewer/viewertexteditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ void ViewerTextEditor::Paint(QPainter *p, Qt::Alignment valign)

const bool use_transparent_clone = true;
if (transparent_clone_ && use_transparent_clone) {
transparent_clone_->setPageSize(this->document()->pageSize());
transparent_clone_->documentLayout()->draw(p, ctx);
} else {
document()->documentLayout()->draw(p, ctx);
Expand Down

0 comments on commit c890858

Please sign in to comment.