Skip to content

Commit

Permalink
Call SyncToFacsimileDoc() before re-rendering page
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Jan 18, 2024
1 parent c90f470 commit 889e4f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/toolkit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,7 @@ bool Toolkit::RenderToDeviceContext(int pageNo, DeviceContext *deviceContext)
if (adjustHeight || (breaks == BREAKS_none)) height = m_doc.GetAdjustedDrawingPageHeight();

if (m_doc.IsTranscription()) {
if (m_doc.HasFacsimile()) m_doc.SyncToFacsimileDoc();
width = m_doc.GetAdjustedDrawingPageWidth();
height = m_doc.GetAdjustedDrawingPageHeight();
}
Expand Down

0 comments on commit 889e4f7

Please sign in to comment.