Mercurial > dive4elements > river
changeset 8508:5160d5f9c65d
(issue1782) Invert KM filter if from is larger then to
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 16 Dec 2014 15:40:00 +0100 |
parents | 7d0c4e508835 |
children | 32c94ca227bc |
files | artifacts/doc/conf/meta-data.xml |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml Tue Dec 16 15:29:44 2014 +0100 +++ b/artifacts/doc/conf/meta-data.xml Tue Dec 16 15:40:00 2014 +0100 @@ -3197,6 +3197,11 @@ <dc:macro name="artifact-range"> <dc:variable name="fromkm" type="number" expr="dc:fromValue(dc:get('ld_mode'), dc:get('ld_locations'), dc:get('ld_from'))"/> <dc:variable name="tokm" type="number" expr="dc:toValue(dc:get('ld_mode'), dc:get('ld_locations'), dc:get('ld_to'))"/> + <dc:if test="$fromkm > $tokm"> + <dc:message>Inverting KM filter.</dc:message> + <dc:variable name="fromkm" type="number" expr="dc:toValue(dc:get('ld_mode'), dc:get('ld_locations'), dc:get('ld_to'))"/> + <dc:variable name="tokm" type="number" expr="dc:fromValue(dc:get('ld_mode'), dc:get('ld_locations'), dc:get('ld_from'))"/> + </dc:if> <dc:macro-body/> </dc:macro>