# HG changeset patch # User Andre Heinecke # Date 1374595188 -7200 # Node ID bf76346864fdca384c23b8b4613048972d0a43c8 # Parent 724f9bf7fa9cfe537d9362d84bf027d9901f4836 Only look to W facets for inversion handling. This is a better fix for flys/issue1290 as the inversion code was intended to handle W's and not generic heightmarks and stuff. diff -r 724f9bf7fa9c -r bf76346864fd artifacts/src/main/java/org/dive4elements/river/exports/process/WOutProcessor.java --- a/artifacts/src/main/java/org/dive4elements/river/exports/process/WOutProcessor.java Tue Jul 23 17:11:07 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/WOutProcessor.java Tue Jul 23 17:59:48 2013 +0200 @@ -69,7 +69,13 @@ generator.addAreaSeries(area, index, visible); } - invertAxis(generator, wkms); + if (aaf.getFacetName().equals(FacetTypes.LONGITUDINAL_W) || + aaf.getFacetName().equals(FacetTypes.DISCHARGE_LONGITUDINAL_W) || + aaf.getFacetName().equals(FacetTypes.STATIC_WQKMS_W)) { + /* Only use W values to check if the diagram should be inverted + * see flys/issue1290 for details */ + invertAxis(generator, wkms); + } } /**