[PATCH 5 of 5] issue1470: Make validate of WDifferencesState return true if in "new chart"

Wald Commits scm-commit at wald.intevation.org
Tue Sep 17 09:31:25 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1379403093 -7200
# Node ID a3d4153afb16b749148018b228754926f220ef5f
# Parent  d12363a7d84a6640b5b726ec72a46e554bd5d9e3
issue1470: Make validate of WDifferencesState return true if in "new chart".

diff -r d12363a7d84a -r a3d4153afb16 artifacts/src/main/java/org/dive4elements/river/artifacts/states/WDifferencesState.java
--- 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");
 


More information about the Dive4elements-commits mailing list