loleaflet/src/control/Control.JSDialogBuilder.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 90611f59a625299022724e06ce39438efcdac91e Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Tue Nov 12 09:14:24 2019 +0100 Commit: Szymon Kłos <szymon.k...@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.k...@collabora.com> Tested-by: Szymon Kłos <szymon.k...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits