Skip to content

Commit 247be4d

Browse files
anolivetreedlemstra
authored andcommitted
Fix pdf:page-direction flag
1 parent 3f0d408 commit 247be4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎coders/pdf.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ RestoreMSCWarning
14181418
(void) WriteBlobString(image,"/Type /Catalog");
14191419
option=GetImageOption(image_info,"pdf:page-direction");
14201420
if ((option != (const char *) NULL) &&
1421-
(LocaleCompare(option,"right-to-left") != MagickFalse))
1421+
(LocaleCompare(option,"right-to-left") == 0))
14221422
(void) WriteBlobString(image,"/ViewerPreferences<</PageDirection/R2L>>\n");
14231423
(void) WriteBlobString(image,"\n");
14241424
(void) WriteBlobString(image,">>\n");

0 commit comments

Comments
 (0)