Mercurial > hg > digilib
changeset 1437:1edc05d955cb
make sure prepareScaleParams is only called once.
author | robcast |
---|---|
date | Tue, 10 Nov 2015 14:17:12 +0100 |
parents | 69c777285d58 |
children | b8f2fde0f034 c4d32640c1be |
files | common/src/main/java/digilib/image/ImageJobDescription.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/common/src/main/java/digilib/image/ImageJobDescription.java Sun Nov 08 18:40:38 2015 +0100 +++ b/common/src/main/java/digilib/image/ImageJobDescription.java Tue Nov 10 14:17:12 2015 +0100 @@ -798,7 +798,9 @@ public Rectangle2D getOuterImgArea() throws IOException, ImageOpException { if (outerImgArea == null) { // calculate scale parameters - prepareScaleParams(); + if (imgArea == null) { + prepareScaleParams(); + } // start with imgArea outerImgArea = imgArea;