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

Szymon Kłos (via logerrit) logerrit at kemper.freedesktop.org
Fri Nov 29 13:46:44 UTC 2019


 loleaflet/src/control/Control.JSDialogBuilder.js |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 375f14ad9031a2e35d2e195a61051cb6d55165c4
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Nov 28 14:49:59 2019 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Fri Nov 29 14:45:42 2019 +0100

    jsdialog: migrate left/right margin to generic items dump
    
    Change-Id: I8cff81ba8d0eb8719284d40f874cfe8cada25cf7
    Reviewed-on: https://gerrit.libreoffice.org/84051
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
    Tested-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 5cd483b04..a695b86e7 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -590,20 +590,20 @@ L.Control.JSDialogBuilder = L.Control.extend({
 		case 'beforetextindent':
 			state = items.getItemValue('.uno:LeftRightParaMargin');
 			if (state)
-				return JSON.parse(state).left.replace(',', '.');
+				return state.left.replace(',', '.');
 			break;
 
 		case 'aftertextindent':
 			state = items.getItemValue('.uno:LeftRightParaMargin');
 			if (state) {
-				return JSON.parse(state).right.replace(',', '.');
+				return state.right.replace(',', '.');
 			}
 			break;
 
 		case 'firstlineindent':
 			state = items.getItemValue('.uno:LeftRightParaMargin');
 			if (state)
-				return JSON.parse(state).firstline.replace(',', '.');
+				return state.firstline.replace(',', '.');
 			break;
 
 		case 'aboveparaspacing':


More information about the Libreoffice-commits mailing list