Skip to content

Commit 02ab726

Browse files
committed
Fixing the bug we just introduced.
1 parent 457cee7 commit 02ab726

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/codestream/ojph_params_local.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ namespace ojph {
243243
if (XTsiz + XTOsiz <= XOsiz || YTsiz + YTOsiz <= YOsiz)
244244
OJPH_ERROR(0x00040003,
245245
"The top left tile must intersect with the image");
246-
if (Xsiz > XOsiz || Ysiz > YOsiz)
246+
if (Xsiz <= XOsiz || Ysiz <= YOsiz)
247247
OJPH_ERROR(0x00040004,
248-
"The image extent has to be larger than the image offset");
248+
"The image extent must be larger than the image offset");
249249
}
250250

251251
ui16 get_num_components() const { return Csiz; }

0 commit comments

Comments
 (0)