loleaflet/src/map/Map.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1cc4acd95c8eae3e59de8fbc0ccb2958831679e2
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Tue Oct 2 23:47:32 2018 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Tue Oct 9 15:55:37 2018 -0400

    loleaflet: mobile: ensure to not create the ruler
    
    Change-Id: I7f985f93d8282533aa6cb32bff455b08011d7dfc
    Reviewed-on: https://gerrit.libreoffice.org/61281
    Reviewed-by: Jan Holesovsky <ke...@collabora.com>
    Tested-by: Jan Holesovsky <ke...@collabora.com>

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 07ba04098..7d0937f97 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -123,7 +123,7 @@ L.Map = L.Evented.extend({
                        if (!this.initComplete) {
                                this._fireInitComplete('doclayerinit');
                        }
-                       if (this._docLayer._docType == 'text') {
+                       if (!L.Browser.mobile && this._docLayer._docType == 
'text') {
                                var interactiveRuler = this._permission === 
'edit' ? true : false;
                                L.control.ruler({position:'topleft', 
interactive:interactiveRuler}).addTo(this);
                        }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to