Skip to content

Commit 9e95103

Browse files
Merge pull request livecode#7275 from livecodepanos/bugfix-19997
[19997] Ensure the printPaperRectangle returns the correct value
2 parents 5e1feaa + 398c16d commit 9e95103

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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)