diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-05-29 19:39:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-05-29 19:39:07 +0300 |
commit | f2d7356f162670f6e0162983ecc41ca681b9e267 (patch) | |
tree | 700877b2b28817e1cac075a42caa8755d1bf8ed8 /source/blender/editors | |
parent | f212bfa3cd570f319efb9d5ab6ce4fe89cc453d4 (diff) |
Background Fit could set inf zoom
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_node/node_view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_view.c b/source/blender/editors/space_node/node_view.c index 9c73af12e3f..f497a06cb12 100644 --- a/source/blender/editors/space_node/node_view.c +++ b/source/blender/editors/space_node/node_view.c @@ -345,7 +345,7 @@ static int backimage_fit_exec(bContext *C, wmOperator *UNUSED(op)) ima = BKE_image_verify_viewer(IMA_TYPE_COMPOSITE, "Viewer Node"); ibuf = BKE_image_acquire_ibuf(ima, NULL, &lock); - if (ibuf == NULL) { + if ((ibuf == NULL) || (ibuf->x == 0) || (ibuf->y == 0)) { BKE_image_release_ibuf(ima, ibuf, lock); return OPERATOR_CANCELLED; } |