# HG changeset patch # User robcast # Date 1447161432 -3600 # Node ID 1edc05d955cba1bd06c340b60650f507be4af755 # Parent 69c777285d582d8a583f0fbd8d3b77d13e13f571 make sure prepareScaleParams is only called once. diff -r 69c777285d58 -r 1edc05d955cb common/src/main/java/digilib/image/ImageJobDescription.java --- 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;