Don't add viewbox weight when no viewbox is given

Fixes #1068.
This commit is contained in:
Sarah Hoffmann 2018-07-20 23:29:36 +02:00
parent 3433ec306e
commit 5a772a5770

View File

@ -149,6 +149,10 @@ class Geocode
private function viewboxImportanceFactor($fX, $fY)
{
if (!$this->aViewBox) {
return 1;
}
$fWidth = ($this->aViewBox[2] - $this->aViewBox[0])/2;
$fHeight = ($this->aViewBox[3] - $this->aViewBox[1])/2;