Skip to content

Commit 398c16d

Browse files
committed
[19997] Ensure the printPaperRectangle returns the correct value
1 parent 430d205 commit 398c16d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

docs/notes/bugfix-19997.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure "the printPaperRectangle" returns the correct value

engine/src/exec-printing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ void MCPrintingGetPrintPageScale(MCExecContext& ctxt, double &r_value)
846846

847847
void MCPrintingGetPrintPageRectangle(MCExecContext& ctxt, MCRectangle &r_value)
848848
{
849-
r_value = MCprinter -> GetDeviceRectangle();
849+
r_value = MCprinter -> GetPageRectangle();
850850
}
851851

852852
void MCPrintingGetPrintJobName(MCExecContext& ctxt, MCStringRef &r_value)

0 commit comments

Comments
 (0)