From 6905aa3dffa223ca7cd4dad23296ce89a5294f4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Fri, 21 Jan 2011 13:25:19 -0500 Subject: [PATCH] reverse min/max for scale denominators --- lib/mess/tree/zoomfilter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mess/tree/zoomfilter.js b/lib/mess/tree/zoomfilter.js index 2104bda..ea40e10 100644 --- a/lib/mess/tree/zoomfilter.js +++ b/lib/mess/tree/zoomfilter.js @@ -117,8 +117,8 @@ tree.ZoomFilter.prototype.negate = function() { tree.ZoomFilter.prototype.toXML = function(env) { var ranges = this.getRanges(); return ranges.map(function(range) { - return (range[0] > 0 ? '' + tree.ZoomFilter.ranges[range[0]] + '' : '') + - (range[1] < 22 ? '' + tree.ZoomFilter.ranges[range[1] + 1] + '' : ''); + return (range[0] > 0 ? '' + tree.ZoomFilter.ranges[range[0]] + '' : '') + + (range[1] < 22 ? '' + tree.ZoomFilter.ranges[range[1] + 1] + '' : ''); }); };