Skip to content

Commit

Permalink
Fix originGeometry value generation
Browse files Browse the repository at this point in the history
This should fix ImageMagick#979
  • Loading branch information
tpett committed Feb 9, 2018
1 parent 820e636 commit ca71126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/json.c
Expand Up @@ -1449,7 +1449,7 @@ static MagickBooleanType EncodeImageAttributes(Image *image,FILE *file,
(double) image->page.width,(double) image->page.height,
(double) image->page.x,(double) image->page.y);
if ((image->page.x != 0) || (image->page.y != 0))
(void) FormatLocaleFile(file," \"originGeometry\": %+.20g%+.20g,\n",
(void) FormatLocaleFile(file," \"originGeometry\": \"%+.20g%+.20g\",\n",
(double) image->page.x,(double) image->page.y);
JSONFormatLocaleFile(file," \"dispose\": %s,\n",
CommandOptionToMnemonic(MagickDisposeOptions,(ssize_t) image->dispose));
Expand Down

0 comments on commit ca71126

Please sign in to comment.