diff flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java @ 2057:49b7c2b1a6a7

Make use of the export size for charts specified in ChartSettings if a chart export is requested. flys-artifacts/trunk@3549 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 27 Dec 2011 11:19:44 +0000
parents 0318fa6f0844
children e8fc770d2f8c
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java	Tue Dec 27 10:12:14 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java	Tue Dec 27 11:19:44 2011 +0000
@@ -233,8 +233,8 @@
      * Returns the size of a chart export as array which has been specified by
      * the incoming request document.
      *
-     * @return the size of a chart as [width, height] or the result of
-     * getDefaultSize() if no width or height are given in the request document.
+     * @return the size of a chart as [width, height] or null if no width or
+     * height are given in the request document.
      */
     protected int[] getSize() {
         int[] size = new int[2];
@@ -262,7 +262,7 @@
             }
         }
 
-        return size[0] > 0 && size[1] > 0 ? size : getDefaultSize();
+        return size[0] > 0 && size[1] > 0 ? size : null;
     }
 
 

http://dive4elements.wald.intevation.org