diff artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator2.java @ 7877:43f18dc56c5a

Fixed subtitle handling and added flowvelocity subtitle.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 16 May 2014 10:55:59 +0200
parents 8c20f16ab650
children 5eb8cd9201d8
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator2.java	Fri May 16 09:32:51 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator2.java	Fri May 16 10:55:59 2014 +0200
@@ -686,6 +686,9 @@
 
         if (chartSettings != null) {
             String subTitle = getChartSubtitle(chartSettings);
+            if (subTitle == null) {
+                return getDefaultChartSubtitle();
+            }
             String defSubTitle = getDefaultChartSubtitle();
             if (defSubTitle != null &&
                 !defSubTitle.isEmpty() &&

http://dive4elements.wald.intevation.org