Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOutlierCurveFacet.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 | 5acaf44062b5 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOutlierCurveFacet.java Thu Oct 17 17:47:58 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOutlierCurveFacet.java Thu Oct 17 18:37:56 2013 +0200 @@ -104,6 +104,11 @@ public Facet deepCopy() { SQOutlierCurveFacet copy = new SQOutlierCurveFacet(); copy.set(this); + copy.type = type; + copy.hash = hash; + copy.stateId = stateId; + copy.fractionIdx = fractionIdx; + return copy; } }