mirror of https://github.com/GNOME/gimp.git
Don't access the image's unit and resolution members directly
This commit is contained in:
parent
b6ce5d075d
commit
f18943f4ce
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue