diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-02 23:58:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-03 00:32:28 +0300 |
commit | d1d21dac510a623daaa4344e13935089ebb2c38a (patch) | |
tree | a95456903c6fe29dc31246949c3cf5951a1a5955 | |
parent | 6002e2f061b842ce4de187c1f40e7b6dbfa0f95a (diff) |
Fix assert in image crop
-rw-r--r-- | source/blender/imbuf/intern/rectop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/rectop.c b/source/blender/imbuf/intern/rectop.c index 3163a960892..7150e41841b 100644 --- a/source/blender/imbuf/intern/rectop.c +++ b/source/blender/imbuf/intern/rectop.c @@ -262,7 +262,7 @@ void IMB_rect_crop(ImBuf *ibuf, const rcti *crop) BLI_rcti_size_x(crop) + 1, BLI_rcti_size_y(crop) + 1, }; - BLI_assert(size_dst[0] > 0 && size_dst[0] > 0); + BLI_assert(size_dst[0] > 0 && size_dst[1] > 0); BLI_assert(crop->xmin >= 0 && crop->ymin >= 0); BLI_assert(crop->xmax < ibuf->x && crop->ymax < ibuf->y); @@ -304,7 +304,7 @@ static void rect_realloc_16bytes(void **buf_p, const uint size[2]) */ void IMB_rect_size_set(ImBuf *ibuf, const uint size[2]) { - BLI_assert(size[0] > 0 && size[0] > 0); + BLI_assert(size[0] > 0 && size[1] > 0); if ((size[0] == ibuf->x) && (size[1] == ibuf->y)) { return; } |