[Libreoffice-commits] online.git: loleaflet/src

mert (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 12 15:44:03 UTC 2019


 loleaflet/src/layer/tile/TileLayer.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e0c6f3f80bdd7edcccb84e09b90d7a1b00840798
Author:     mert <mert.tumer at collabora.com>
AuthorDate: Thu Oct 31 15:30:20 2019 +0300
Commit:     Ashod Nakashian <ashnakash at gmail.com>
CommitDate: Tue Nov 12 16:43:45 2019 +0100

    Highlight searched text when found
    
    Change-Id: I22fb5af8015f5114039d981d85b3ece8be77bf3e
    Reviewed-on: https://gerrit.libreoffice.org/81845
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 92171c498..9a371ea25 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -200,8 +200,8 @@ L.TileLayer = L.GridLayer.extend({
 		this._selections = new L.LayerGroup();
 		this._references = new L.LayerGroup();
 		this._referencesAll = [];
+		map.addLayer(this._selections);
 		if (this.options.permission !== 'readonly') {
-			map.addLayer(this._selections);
 			map.addLayer(this._references);
 		}
 
@@ -1360,6 +1360,7 @@ L.TileLayer = L.GridLayer.extend({
 		this._searchResults = null;
 		this._searchTerm = null;
 		this._searchResultsLayer.clearLayers();
+		this._selections.clearLayers();
 	},
 
 	_drawSearchResults: function() {


More information about the Libreoffice-commits mailing list