changeset 1104:9383a4608d9f

Use FLYSUtils.getRiver instead of WINFOArtifact.getRiver. flys-artifacts/trunk@2607 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 29 Aug 2011 09:26:56 +0000
parents e0243627ba62
children adb52a2005e7
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Mon Aug 29 09:26:07 2011 +0000
+++ b/flys-artifacts/ChangeLog	Mon Aug 29 09:26:56 2011 +0000
@@ -1,3 +1,10 @@
+2011-08-29  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	Use FLYSUtils.getRiver instead of WINFOArtifact.getRiver.
+
+	* src/main/java/de/intevation/flys/exports/ChartGenerator.java:
+	  Use FLYSUtils.getRiver instead of WINFOArtifact.getRiver.
+
 2011-08-29  Felix Wolfsteller <felix.wolfsteller@intevation.de>
 
 	Use FLYSUtils.getRiver instead of WINFOArtifact.getRiver.
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java	Mon Aug 29 09:26:07 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java	Mon Aug 29 09:26:56 2011 +0000
@@ -39,7 +39,7 @@
     private static Logger logger = Logger.getLogger(ChartGenerator.class);
 
 
-    /** The default chart width, if no other width is set.*/
+    /** The default chart width, if no other width is set. */
     public static final int DEFAULT_CHART_WIDTH  = 600;
 
     /** The default chart height, if no other height is set.*/
@@ -97,8 +97,8 @@
     protected String getRiverName() {
         WINFOArtifact flys = (WINFOArtifact) master;
 
-        River river = flys.getRiver();
-        return river != null ? river.getName() : "";
+        River river = FLYSUtils.getRiver(flys);
+        return (river != null) ? river.getName() : "";
     }
 
 

http://dive4elements.wald.intevation.org