From: cristy Date: Sat, 11 Feb 2012 18:56:14 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46e350eab407fbe2c14d8d775f0f427337c0750f;p=imagemagick --- diff --git a/coders/xcf.c b/coders/xcf.c index ed6693eb9..024c257fc 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -646,15 +646,18 @@ static MagickBooleanType load_level(Image *image,XCFDocInfo *inDocInfo, /* seek to the tile offset */ offset=SeekBlob(image, offset, SEEK_SET); - /* allocate the image for the tile - NOTE: the last tile in a row or column may not be a full tile! + /* + Allocate the image for the tile. NOTE: the last tile in a row or + column may not be a full tile! */ tile_image_width=(size_t) (destLeft == (int) ntile_cols-1 ? (int) width % TILE_WIDTH : TILE_WIDTH); - if (tile_image_width == 0) tile_image_width=TILE_WIDTH; + if (tile_image_width == 0) + tile_image_width=TILE_WIDTH; tile_image_height = (size_t) (destTop == (int) ntile_rows-1 ? (int) height % TILE_HEIGHT : TILE_HEIGHT); - if (tile_image_height == 0) tile_image_height=TILE_HEIGHT; + if (tile_image_height == 0) + tile_image_height=TILE_HEIGHT; tile_image=CloneImage(inLayerInfo->image,tile_image_width, tile_image_height,MagickTrue,exception);