summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/dvipdfmx.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfm-x/dvipdfmx.c')
-rw-r--r--Build/source/texk/dvipdfm-x/dvipdfmx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/dvipdfm-x/dvipdfmx.c b/Build/source/texk/dvipdfm-x/dvipdfmx.c
index 44d9b334f31..6efb3c4a5d1 100644
--- a/Build/source/texk/dvipdfm-x/dvipdfmx.c
+++ b/Build/source/texk/dvipdfm-x/dvipdfmx.c
@@ -1118,9 +1118,6 @@ main (int argc, char *argv[])
&x_offset, &y_offset, &landscape_mode,
&pdf_version_major, &pdf_version_minor,
&do_encryption, &key_bits, &permission, oplain, uplain);
- if (landscape_mode) {
- SWAP(paper_width, paper_height);
- }
}
/* Command-line options take precedence */
@@ -1167,6 +1164,9 @@ main (int argc, char *argv[])
* annot_grow: Margin of annotation.
* bookmark_open: Miximal depth of open bookmarks.
*/
+ if (landscape_mode) {
+ SWAP(paper_width, paper_height);
+ }
settings.media_width = paper_width;
settings.media_height = paper_height;
settings.annot_grow_amount = annot_grow;