File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Project/Sources/Forms/WP_Toolbar/ObjectMethods Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1- var $orientation : Integer
1+ var $orientation ; $height ; $width : Integer // ACI0104569
22var $document : Object
33var $width_s ; $height_s : Text
44var $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
3949End if
You can’t perform that action at this time.
0 commit comments