--- montage_old.m 2015-10-20 18:03:38.948531197 -0400 +++ /home/wwpad/octave/image-2.4.1/montage.m 2015-10-20 18:04:01.680530406 -0400 @@ -282,11 +282,11 @@ ## because there is no default value for limits in imshow, we call imshow ## in this condition. Actually, the default is dependent on the image type ## which would make this even longer - if (any (strcmpi (p.UsingDefaults, "DisplayRange"))) + try tmp_h = imshow (disp_img, p.Results.DisplayRange); - else + catch tmp_h = imshow (disp_img); - endif + end_try_catch if (nargout > 0) h = tmp_h;