# HG changeset patch # User Felix Wolfsteller # Date 1314610016 0 # Node ID 9383a4608d9fd868344081c02ed4592a6bd615f4 # Parent e0243627ba62709aff2faf5742710382b7097c90 Use FLYSUtils.getRiver instead of WINFOArtifact.getRiver. flys-artifacts/trunk@2607 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r e0243627ba62 -r 9383a4608d9f flys-artifacts/ChangeLog --- 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 + + 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 Use FLYSUtils.getRiver instead of WINFOArtifact.getRiver. diff -r e0243627ba62 -r 9383a4608d9f flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java --- 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() : ""; }