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

New commits:
commit e0c6f3f80bdd7edcccb84e09b90d7a1b00840798
Author:     mert <[email protected]>
AuthorDate: Thu Oct 31 15:30:20 2019 +0300
Commit:     Ashod Nakashian <[email protected]>
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 <[email protected]>
    Tested-by: Ashod Nakashian <[email protected]>

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() {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to