From: cristy Date: Thu, 1 Aug 2013 17:12:57 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3449 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66a5ca2deafe0e78015b540627906f844f13c5b6;p=imagemagick --- diff --git a/MagickCore/property.c b/MagickCore/property.c index 1eb9ebe2b..83de40493 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -2325,17 +2325,15 @@ static const char *GetMagickPropertyLetter(ImageInfo *image_info, case 'x': /* Image horizontal resolution (with units) */ { WarnNoImageReturn("\"%%%c\"",letter); - (void) FormatLocaleString(value,MaxTextExtent,"%g %s", - image->resolution.x,CommandOptionToMnemonic( - MagickResolutionOptions,(ssize_t)image->units)); + (void) FormatLocaleString(value,MaxTextExtent,"%.20g", + fabs(image->resolution.x) > MagickEpsilon ? 72.0 : image->resolution.x); break; } case 'y': /* Image vertical resolution (with units) */ { WarnNoImageReturn("\"%%%c\"",letter); - (void) FormatLocaleString(value,MaxTextExtent,"%g %s", - image->resolution.y,CommandOptionToMnemonic(MagickResolutionOptions, - (ssize_t) image->units)); + (void) FormatLocaleString(value,MaxTextExtent,"%.20g", + fabs(image->resolution.y) > MagickEpsilon ? 72.0 : image->resolution.y); break; } case 'z': /* Image depth as read in */