From 4114b819d4a302cc33c33c6ced826c14a0d44235 Mon Sep 17 00:00:00 2001 From: dtschump Date: Fri, 30 Mar 2018 12:32:20 +0200 Subject: [PATCH] . --- CImg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CImg.h b/CImg.h index a3ab4a33..8fc96937 100644 --- a/CImg.h +++ b/CImg.h @@ -51376,7 +51376,7 @@ namespace cimg_library_suffixed { if (sx0>=0 && sy0>=0 && sz0>=0 && sx1>=0 && sy1>=0 && sz1>=0) { x1 = x0 + sx1; y1 = y0 + sy1; z1 = z0 + sz1; x0+=sx0; y0+=sy0; z0+=sz0; - if (sx0==sx1 && sy0==sy1 && sz0==sz1) { + if ((sx0==sx1 && sy0==sy1) || (_depth>1 && sx0==sx1 && sz0==sz1) || (_depth>1 && sy0==sy1 && sz0==sz1)) { if (exit_on_simpleclick && (!zoom || is_empty())) break; else reset_view = true; } resize_disp = true;