Skip to content

Commit f339d71

Browse files
ACI0104569 (report from main)
1 parent 64569bc commit f339d71

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Project/Sources/Forms/WP_Toolbar/ObjectMethods/btnPrintPreview1.4dm

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var $orientation : Integer
1+
var $orientation; $height; $width : Integer // ACI0104569
22
var $document : Object
33
var $width_s; $height_s : Text
44
var $paper : Text
@@ -34,6 +34,16 @@ If ($document#Null:C1517)
3434
$width_s:=String:C10($_widths{$p}; "####0pt")
3535
$height_s:=String:C10($_heights{$p}; "####0pt")
3636
WP SET ATTRIBUTES:C1342($document; wk page width:K81:262; $width_s; wk page height:K81:263; $height_s)
37+
38+
Else // ACI0104569
39+
40+
GET PRINT OPTION:C734(Paper option:K47:1; $height; $width)
41+
// values in px not in pt but it's the same on macOS
42+
// no need to check because on windows $p above seems to be always >0
43+
$width_s:=String:C10($height; "####0pt")
44+
$height_s:=String:C10($width; "####0pt")
45+
WP SET ATTRIBUTES:C1342($document; wk page width:K81:262; $width_s; wk page height:K81:263; $height_s)
46+
3747
End if
3848

3949
End if

0 commit comments

Comments
 (0)