diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOverviewFacet.java @ 7378:aff189df381b

(issue1474) Fix copying of SQ* Facets The main thing causing confusion was that the fractionIdx was not copied. But the other DataFacet specific parts were also lost.
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 17 Oct 2013 18:37:56 +0200
parents af13ceeba52a
children b7e82468299a
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOverviewFacet.java	Thu Oct 17 17:47:58 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOverviewFacet.java	Thu Oct 17 18:37:56 2013 +0200
@@ -62,6 +62,10 @@
     public SQOverviewFacet deepCopy() {
         SQOverviewFacet copy = new SQOverviewFacet();
         copy.set(this);
+        copy.type    = type;
+        copy.hash    = hash;
+        copy.stateId = stateId;
+        copy.fractionIdx = fractionIdx;
 
         return copy;
     }

http://dive4elements.wald.intevation.org