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>
This commit is contained in:
Pranam Lashkari
2020-09-21 19:25:54 +05:30
parent c43aeb3e35
commit 31c931658d

View File

@ -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);