changeset 7029:a3d4153afb16

issue1470: Make validate of WDifferencesState return true if in "new chart".
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 17 Sep 2013 09:31:33 +0200
parents d12363a7d84a
children 6205fe683ac7
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/WDifferencesState.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/WDifferencesState.java	Mon Sep 16 17:30:14 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/WDifferencesState.java	Tue Sep 17 09:31:33 2013 +0200
@@ -65,6 +65,9 @@
     throws IllegalArgumentException
     {
         D4EArtifact flys = (D4EArtifact) artifact;
+        if (artifact instanceof ChartArtifact) {
+            return true;
+        }
 
         StateData data = flys.getData("diffids");
 

http://dive4elements.wald.intevation.org