We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 457cee7 commit 02ab726Copy full SHA for 02ab726
1 file changed
src/core/codestream/ojph_params_local.h
@@ -243,9 +243,9 @@ namespace ojph {
243
if (XTsiz + XTOsiz <= XOsiz || YTsiz + YTOsiz <= YOsiz)
244
OJPH_ERROR(0x00040003,
245
"The top left tile must intersect with the image");
246
- if (Xsiz > XOsiz || Ysiz > YOsiz)
+ if (Xsiz <= XOsiz || Ysiz <= YOsiz)
247
OJPH_ERROR(0x00040004,
248
- "The image extent has to be larger than the image offset");
+ "The image extent must be larger than the image offset");
249
}
250
251
ui16 get_num_components() const { return Csiz; }
0 commit comments