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

Szymon Kłos (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 12 09:41:27 UTC 2019


 loleaflet/src/control/Control.JSDialogBuilder.js |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 90611f59a625299022724e06ce39438efcdac91e
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Nov 12 09:14:24 2019 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue Nov 12 10:41:09 2019 +0100

    jsdialogs: update LineWidth with current state
    
    Change-Id: Ia699170691cda3fab892583a6a302302b6e3464d
    Reviewed-on: https://gerrit.libreoffice.org/82486
    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 9c140166b..0343418ee 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -797,7 +797,10 @@ L.Control.JSDialogBuilder = L.Control.extend({
 			4.5,
 			6.0 ];
 
-		var lineData = { min: 0.5, max: 5, id: 'linewidth', text: '0.5' };
+		var currentWidth = parseInt(builder.map['stateChangeHandler'].getItemValue('.uno:LineWidth'));
+		var currentWidthText = currentWidth ? String(parseFloat(currentWidth)/100.0) : '0.5';
+
+		var lineData = { min: 0.5, max: 5, id: 'linewidth', text: currentWidthText };
 
 		var callbackFunction = function(objectType, eventType, object) {
 			var newValue = 0;


More information about the Libreoffice-commits mailing list