From 5a7748cf8feb5e1f73021079308c058cee80a15e Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 6 Oct 2020 16:30:36 +0000 Subject: [PATCH] fix #3935 @2 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 18027292d..933f1270e 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -1308,7 +1308,9 @@ class layerLink extends imageLink public function getCSS() { $attributes = $this->getZoomAttributes(); - zoomLink::generateImage($attributes, $this->compiler, 'layerlink', 'layer'); + if (!$this->rightClone) { + zoomLink::generateImage($attributes, $this->compiler, 'layerlink', 'layer'); + } return 'background-image:url(../links/layer_' . $attributes['id'] . '.jpg);background-size:100% 100%;background-repeat:no-repeat;'; } @@ -1444,7 +1446,9 @@ class downloadPortionLink extends fileLink public function getURL() { $attributes = $this->getZoomAttributes(); - zoomLink::generateImage($attributes, $this->compiler, 'downloadportion', 'downloadportion'); + if (!$this->rightClone) { + zoomLink::generateImage($attributes, $this->compiler, 'downloadportion', 'downloadportion'); + } return 'data/links/downloadportion_' . $attributes['id'] . '.jpg'; } @@ -2087,7 +2091,9 @@ class zoomLink extends normalLink $res .= ' data-' . $key . '="' . htmlspecialchars($val, ENT_QUOTES) . '"'; } - self::generateImage($this->getZoomAttributes(), $this->compiler, 'zoomarea', 'zoom'); + if(!$this->rightClone) { + self::generateImage($this->getZoomAttributes(), $this->compiler, 'zoomarea', 'zoom'); + } return $res; } -- 2.39.5