diff options
author | Jiyong <jiyong.min@samsung.com> | 2023-12-06 10:30:38 +0900 |
---|---|---|
committer | Jiyong <jiyong.min@samsung.com> | 2023-12-06 10:31:10 +0900 |
commit | 2c17c6b7ecf6d96c9b4004cd7b79d860b66e6ae3 (patch) | |
tree | c2510f971c95cb79f5a4bd55c841d294bf5197fd /coders/pcd.c | |
parent | 043c171f3b5935329641967057ae5f45bc1a5631 (diff) | |
download | GraphicsMagick-upstream.tar.gz GraphicsMagick-upstream.tar.bz2 GraphicsMagick-upstream.zip |
Imported Upstream version 1.3.42upstream/1.3.42upstream
Change-Id: I4f2a12cbf50e1a459e7bac7c5a8e374071620eea
Diffstat (limited to 'coders/pcd.c')
-rw-r--r-- | coders/pcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coders/pcd.c b/coders/pcd.c index 658d550..c43c364 100644 --- a/coders/pcd.c +++ b/coders/pcd.c @@ -1050,11 +1050,11 @@ static unsigned int WritePCDTile(const ImageInfo *image_info, (void) GetMagickGeometry(page_geometry,&geometry.x,&geometry.y, &geometry.width,&geometry.height); if ((geometry.width % 2) != 0) - geometry.width--; + geometry.width = geometry.width > 1 ? geometry.width-1 : geometry.width+1 ; if ((geometry.height % 2) != 0) - geometry.height--; + geometry.height = geometry.height > 1 ? geometry.height-1 : geometry.height+1; tile_image=ResizeImage(image,geometry.width,geometry.height,TriangleFilter, - 1.0,&image->exception); + 1.0,&image->exception); if (tile_image == (Image *) NULL) return(False); (void) sscanf(page_geometry,"%lux%lu",&geometry.width,&geometry.height); |