Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/CrossSectionWaterLineFacet.java @ 2676:6af95cecdd03
More stable waterlinefacet, in prep for fix issue620.
flys-artifacts/trunk@4374 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 10 May 2012 09:00:17 +0000 |
parents | 0143b44631cc |
children | 5642a83420f2 |
comparison
equal
deleted
inserted
replaced
2675:1d7231d5b8ad | 2676:6af95cecdd03 |
---|---|
48 Object crossSection = providers.get(0) | 48 Object crossSection = providers.get(0) |
49 .provideData(CrossSectionFacet.BLACKBOARD_CS_MASTER_DATA, null, context); | 49 .provideData(CrossSectionFacet.BLACKBOARD_CS_MASTER_DATA, null, context); |
50 | 50 |
51 WaterLineArtifact winfo = (WaterLineArtifact)artifact; | 51 WaterLineArtifact winfo = (WaterLineArtifact)artifact; |
52 | 52 |
53 return winfo.getWaterLines(this.getIndex(), (FastCrossSectionLine) crossSection); | 53 if (crossSection != null) { |
54 return winfo.getWaterLines(this.getIndex(), | |
55 (FastCrossSectionLine) crossSection); | |
56 } | |
57 else { | |
58 return new Lines.LineData(new double[][] {}, 0d,0d); | |
59 } | |
54 } | 60 } |
55 | 61 |
56 | 62 |
57 /** Do a deep copy. */ | 63 /** Do a deep copy. */ |
58 @Override | 64 @Override |