From ade7ab830073081a2d9b929a348ad7e6e82c3656 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 3 Oct 2016 07:19:48 -0400 Subject: [PATCH] ... --- coders/wpg.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/coders/wpg.c b/coders/wpg.c index fbcbcedfb..ff91ed898 100644 --- a/coders/wpg.c +++ b/coders/wpg.c @@ -1184,8 +1184,7 @@ static Image *ReadWPGImage(const ImageInfo *image_info, flop_image = FlopImage(image, exception); if (flop_image != (Image *) NULL) { DuplicateBlob(flop_image,image); - (void) RemoveLastImageFromList(&image); - AppendImageToList(&image,flop_image); + ReplaceImageInList(&image,flop_image); } } /* flip command */ @@ -1197,8 +1196,7 @@ static Image *ReadWPGImage(const ImageInfo *image_info, flip_image = FlipImage(image, exception); if (flip_image != (Image *) NULL) { DuplicateBlob(flip_image,image); - (void) RemoveLastImageFromList(&image); - AppendImageToList(&image,flip_image); + ReplaceImageInList(&image,flip_image); } } /* rotate command */ @@ -1211,8 +1209,7 @@ static Image *ReadWPGImage(const ImageInfo *image_info, 0x0FFF), exception); if (rotate_image != (Image *) NULL) { DuplicateBlob(rotate_image,image); - (void) RemoveLastImageFromList(&image); - AppendImageToList(&image,rotate_image); + ReplaceImageInList(&image,rotate_image); } } } @@ -1379,8 +1376,7 @@ static Image *ReadWPGImage(const ImageInfo *image_info, flop_image = FlopImage(image, exception); if (flop_image != (Image *) NULL) { DuplicateBlob(flop_image,image); - (void) RemoveLastImageFromList(&image); - AppendImageToList(&image,flop_image); + ReplaceImageInList(&image,flop_image); } /* Try to change CTM according to Flip - I am not sure, must be checked. Tx(0,0)=-1; Tx(1,0)=0; Tx(2,0)=0; @@ -1396,8 +1392,7 @@ static Image *ReadWPGImage(const ImageInfo *image_info, flip_image = FlipImage(image, exception); if (flip_image != (Image *) NULL) { DuplicateBlob(flip_image,image); - (void) RemoveLastImageFromList(&image); - AppendImageToList(&image,flip_image); + ReplaceImageInList(&image,flip_image); } /* Try to change CTM according to Flip - I am not sure, must be checked. float_matrix Tx(3,3); -- 2.40.0