aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev@truth.pearl.pomorsu.ru>2009-10-29 14:34:09 +0300
committerIgor Pashev <pashev@truth.pearl.pomorsu.ru>2009-10-29 14:34:09 +0300
commitafb6f84f2c370a4bdf3ca1b398e522a029214eb3 (patch)
treedb4cf018d3cf076a903ebf9f8dbd324cd583d0bb
parent8d38d97aca8ab6ada7d4f82df170f1532a0592f0 (diff)
downloadgimp-plugin-img-afb6f84f2c370a4bdf3ca1b398e522a029214eb3.tar.gz
Respect byte order on saving
-rw-r--r--img-save.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/img-save.c b/img-save.c
index 4106d71..3a62a60 100644
--- a/img-save.c
+++ b/img-save.c
@@ -335,6 +335,11 @@ img_save_image(gint32 image, const ImageParasite * plugin,
hdr.width = width * hdr.ncols;
hdr.height = height * hdr.nrows;
+ hdr.nrows = GUINT32_TO_LE(hdr.nrows);
+ hdr.ncols = GUINT32_TO_LE(hdr.ncols);
+ hdr.width = GUINT32_TO_LE(hdr.width);
+ hdr.height = GUINT32_TO_LE(hdr.height);
+
D(("*** Saving \"%s\"\n", filename));
gimp_progress_init_printf("Saving '%s'", gimp_filename_to_utf8(filename));