From 66a5ca2deafe0e78015b540627906f844f13c5b6 Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 1 Aug 2013 17:12:57 +0000 Subject: [PATCH] --- MagickCore/property.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 */ -- 2.40.0