Commit 4a32f3e5 authored by Martin Nordholts's avatar Martin Nordholts

plug-ins: Port common/file-tiff-load.c to new item transform API

We don't need to use gimp_context_set_transform_resize() since we flip
around the center.

Note that the current code will never work before we try to rotate the
layer before it is added to the image, but that's a different bug...
parent 719e04f5
......@@ -1068,14 +1068,16 @@ load_image (const gchar *filename,
}
if (flip_horizontal)
gimp_drawable_transform_flip_simple (layer,
GIMP_ORIENTATION_HORIZONTAL,
TRUE, 0.0, TRUE);
gimp_item_transform_flip_simple (layer,
GIMP_ORIENTATION_HORIZONTAL,
TRUE /*auto_center*/,
-1.0 /*axis*/);
if (flip_vertical)
gimp_drawable_transform_flip_simple (layer,
GIMP_ORIENTATION_VERTICAL,
TRUE, 0.0, TRUE);
gimp_item_transform_flip_simple (layer,
GIMP_ORIENTATION_VERTICAL,
TRUE /*auto_center*/,
-1.0 /*axis*/);
}
gimp_drawable_flush (channel[0].drawable);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment