loleaflet/src/control/Ruler.js |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 58457e5c5f75dd84b532dbd85da0491908fc72fb
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Thu Jun 18 14:27:27 2020 +0200
Commit:     Aron Budea <aron.bu...@collabora.com>
CommitDate: Mon Jul 20 14:40:33 2020 +0200

    Avoid usage of undefined when no margin set
    
    Change-Id: Ie922448e37e4414f054fa0404ea5787212c446dd
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96679
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    (cherry picked from commit 91d2e967461f5bb4552c8332faa393ba97e59f11)
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98969
    Reviewed-by: Aron Budea <aron.bu...@collabora.com>

diff --git a/loleaflet/src/control/Ruler.js b/loleaflet/src/control/Ruler.js
index 011b16488..e717d84e3 100644
--- a/loleaflet/src/control/Ruler.js
+++ b/loleaflet/src/control/Ruler.js
@@ -211,6 +211,9 @@ L.Control.Ruler = L.Control.extend({
                var items = this._map['stateChangeHandler'];
                var state = items.getItemValue('.uno:LeftRightParaMargin');
 
+               if (!state)
+                       return;
+
                this.options.firstLineIndent = 
parseFloat(state.firstline.replace(',', '.'));
                this.options.leftParagraphIndent = 
parseFloat(state.left.replace(',', '.'));
                this.options.rightParagraphIndent = 
parseFloat(state.right.replace(',', '.'));
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to