Don't access the image's unit and resolution members directly

This commit is contained in:
Michael Natterer 2010-02-03 19:53:45 +01:00
parent b6ce5d075d
commit f18943f4ce
2 changed files with 3 additions and 3 deletions

View File

@ -358,7 +358,7 @@ gimp_drawable_stroke_scan_convert (GimpDrawable *drawable,
gimp_scan_convert_set_pixel_ratio (scan_convert, yres / xres);
width *= (image->yresolution /
width *= (yres /
_gimp_unit_get_factor (image->gimp, stroke_options->unit));
}

View File

@ -570,7 +570,7 @@ xcf_load_image_props (XcfInfo *info,
unit = GIMP_UNIT_INCH;
}
image->resolution_unit = unit;
gimp_image_set_unit (image, unit);
}
break;
@ -624,7 +624,7 @@ xcf_load_image_props (XcfInfo *info,
unit_strings[3],
unit_strings[4]);
image->resolution_unit = unit;
gimp_image_set_unit (image, unit);
for (i = 0; i < 5; i++)
g_free (unit_strings[i]);