$this->bBoundedSearch = (bool)$bBoundedSearch;
}
- function setViewBox($fLeft, $fBottom, $fRight, $fTop)
+ function setViewBox($sLeft, $sBottom, $sRight, $sTop)
{
- $this->aViewBox = array($fLeft, $fBottom, $fRight, $fTop);
+ $fLeft = (float)$sLeft;
+ $fRight = (float)$sRight;
+ $fTop = (float)$sTop;
+ $fBottom = (float)$sBottom;
+ if ($fRight > $fLeft && $fBottom > $fTop
+ && ($fRight - $fLeft) < 2 && ($fBottom - $fTop) < 2)
+ $this->aViewBox = array($fLeft, $fBottom, $fRight, $fTop);
}
function getViewBoxString()