[gimp/gimp-2-10] Revert "app: save images with fractional grid coordinates as version-10 XCFs"
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] Revert "app: save images with fractional grid coordinates as version-10 XCFs"
- Date: Wed, 5 Dec 2018 18:53:17 +0000 (UTC)
commit 09863478dbae467c50b72e7af0783e81c443f1c5
Author: Ell <ell_se yahoo com>
Date: Wed Dec 5 13:39:00 2018 -0500
Revert "app: save images with fractional grid coordinates as version-10 XCFs"
Actually, image grids are saved as parasites, so even though older
GIMP versions round their coordinates upon loading, they maintain
the fractional coordinates when re-saving the image, hence bumping
the XCF version is not really necessary.
This reverts commit 13119efda33a7aba323dc13e6a56207a15a9f000.
(cherry picked from commit 411ddb7e485ab05f032adeef7ea9369edc1d27a0)
app/core/gimpimage.c | 20 --------------------
1 file changed, 20 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 449ab0fc25..167f5e2646 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -53,7 +53,6 @@
#include "gimpimage-color-profile.h"
#include "gimpimage-colormap.h"
#include "gimpimage-guides.h"
-#include "gimpimage-grid.h"
#include "gimpimage-item-list.h"
#include "gimpimage-metadata.h"
#include "gimpimage-sample-points.h"
@@ -2514,25 +2513,6 @@ gimp_image_get_xcf_version (GimpImage *image,
version = MAX (7, version);
}
- /* need version 10 for fractional grid coordinates */
- if (gimp_image_get_grid (image))
- {
- GimpGrid *grid = gimp_image_get_grid (image);
- gdouble xspacing, yspacing;
- gdouble xoffset, yoffset;
-
- gimp_grid_get_spacing (grid, &xspacing, &yspacing);
- gimp_grid_get_offset (grid, &xoffset, &yoffset);
-
- if (xspacing != floor (xspacing) || yspacing != floor (yspacing) ||
- xoffset != floor (xoffset) || yoffset != floor (yoffset))
- {
- ADD_REASON (g_strdup_printf (_("Fractional grid coordinates were "
- "added in %s"), "GIMP 2.10"));
- version = MAX (10, version);
- }
- }
-
/* need version 12 for > 8-bit images for proper endian swapping */
if (gimp_image_get_precision (image) > GIMP_PRECISION_U8_GAMMA)
version = MAX (12, version);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]