summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2020-09-21 19:25:54 +0530
committerPranam Lashkari <lpranam@collabora.com>2020-09-21 18:15:21 +0200
commit31c931658d5f7ed453a05085c3286f70fe769e46 (patch)
tree5c61d24a14b165bd0621d0bbf4bb444ed77a11de
parentc43aeb3e35a99c2f35bb817037d2451dc8731ae5 (diff)
leaflet: show annotation marker only from the selected slide
Change-Id: I6a9950f8f5be0f6e7393faf4f8718b94ffb05ebc Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103114 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
-rw-r--r--loleaflet/src/layer/marker/Annotation.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/loleaflet/src/layer/marker/Annotation.js b/loleaflet/src/layer/marker/Annotation.js
index dc4f94633..6a8701dc7 100644
--- a/loleaflet/src/layer/marker/Annotation.js
+++ b/loleaflet/src/layer/marker/Annotation.js
@@ -485,7 +485,8 @@ L.Annotation = L.Layer.extend({
}),
draggable: true
});
- this._map.addLayer(this._annotationMarker);
+ if (this._map._docLayer._partHashes[this._map._docLayer._selectedPart] == this._data.parthash)
+ this._map.addLayer(this._annotationMarker);
}
if (this._data.rectangle != null) {
var stringTwips = this._data.rectangle.match(/\d+/g);