From: Even Rouault Date: Thu, 21 Sep 2017 11:54:14 +0000 (+0200) Subject: Fix copy&paste error (Coverity CID 169394) X-Git-Tag: v2.3.0~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68e596dada2ee38a66b01494e5a425e623688300;p=openjpeg Fix copy&paste error (Coverity CID 169394) --- diff --git a/src/lib/openjp2/j2k.c b/src/lib/openjp2/j2k.c index 36d4e947..cda722b4 100644 --- a/src/lib/openjp2/j2k.c +++ b/src/lib/openjp2/j2k.c @@ -9301,7 +9301,7 @@ OPJ_BOOL opj_j2k_set_decode_area(opj_j2k_t *p_j2k, } /* Up */ - if (p_start_x < 0) { + if (p_start_y < 0) { opj_event_msg(p_manager, EVT_ERROR, "Up position of the decoded area (region_y0=%d) should be >= 0.\n", p_start_y);