Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-10-02 23:58:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-10-03 00:32:28 +0300
commitd1d21dac510a623daaa4344e13935089ebb2c38a (patch)
treea95456903c6fe29dc31246949c3cf5951a1a5955 /source/blender/imbuf
parent6002e2f061b842ce4de187c1f40e7b6dbfa0f95a (diff)
Fix assert in image crop
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/rectop.c4
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;
}