X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5be0f828c1cdf9f69aefdcc158fc06f2f5a67cfc..c125aab8dabf6716ae1164f0489bb9b41238c97f:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index a9fa44fe..a932949d 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -154,8 +154,8 @@ $fRight = (float)$sRight; $fTop = (float)$sTop; $fBottom = (float)$sBottom; - if ($fRight > $fLeft && $fBottom > $fTop - && ($fRight - $fLeft) < 2 && ($fBottom - $fTop) < 2) + if ($fRight > $fLeft && $fBottom < $fTop + && ($fRight - $fLeft) < 2 && ($fTop - $fBottom) < 2) $this->aViewBox = array($fLeft, $fBottom, $fRight, $fTop); }