changeset 304:2d3f293899e8

Set default values for width and flex.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 16 Aug 2013 14:40:01 +0200
parents c96fcc4dd5fd
children f0e1caad6027
files src/main/java/de/intevation/lada/utils/QueryTools.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/utils/QueryTools.java	Fri Aug 16 14:39:27 2013 +0200
+++ b/src/main/java/de/intevation/lada/utils/QueryTools.java	Fri Aug 16 14:40:01 2013 +0200
@@ -64,8 +64,8 @@
                     ResultConfig config = new ResultConfig();
                     config.setDataIndex(result.getString("dataIndex"));
                     config.setHeader(result.getString("header"));
-                    config.setWidth(result.optInt("width"));
-                    config.setFlex(result.optInt("flex"));
+                    config.setWidth(result.optInt("width", 100));
+                    config.setFlex(result.optInt("flex", 0));
                     sResults.add(config);
                 }
                 qConf.setResults(sResults);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)