changeset 4437:dd8a63002fb8

Only put current Km to the context if it is a valid km Don't set the current km to the invalid value.
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 06 Nov 2012 15:51:43 +0100
parents 9fca4d60fb7c
children 919d4939ebe6
files flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixChartGenerator.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixChartGenerator.java	Wed Nov 07 13:49:32 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixChartGenerator.java	Tue Nov 06 15:51:43 2012 +0100
@@ -34,7 +34,9 @@
             logger.debug("currentKm = " + currentKm);
         }
 
-        context.putContextValue(CURRENT_KM, currentKm);
+        if (currentKm != INVALID_KM) {
+            context.putContextValue(CURRENT_KM, currentKm);
+        }
     }
 
     public static final Double getCurrentKmFromRequest(Document request) {

http://dive4elements.wald.intevation.org