diff options
-rw-r--r-- | source/blender/imbuf/intern/scaling.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/scaling.c b/source/blender/imbuf/intern/scaling.c index 80731213140..ea3cc59b554 100644 --- a/source/blender/imbuf/intern/scaling.c +++ b/source/blender/imbuf/intern/scaling.c @@ -915,8 +915,8 @@ static void q_scale_float(float* in, float* out, int in_width, static int q_scale_linear_interpolation( struct ImBuf *ibuf, int newx, int newy) { - if ((newx > ibuf->x && newy < ibuf->y) || - (newx < ibuf->x && newy > ibuf->y)) { + if ((newx >= ibuf->x && newy <= ibuf->y) || + (newx <= ibuf->x && newy >= ibuf->y)) { return FALSE; } |