From: vincent@cubedesigners.com Date: Tue, 28 Nov 2017 17:35:39 +0000 (+0000) Subject: fix #1811 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8155fde8448b02572d5f85fc670447a4911e9635;p=cubeextranet.git fix #1811 @1.5 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index e4aea9910..5ff189a22 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -1262,6 +1262,7 @@ class zoomLink extends normalLink { public function generateImage() { $maxzoom = ((int)$this->to !== 0) ? $this->to : 2; // Max zoom level might not always be set in the link editor + $maxzoom = min($maxzoom, 4.166666667); // TODO: Consider generating higher-res images (eg. 2x) for HiDPI screens. Maybe some extra optimisations can be done on the larger images...