[Libreoffice-commits] online.git: loleaflet/src
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Mon Apr 20 07:55:17 UTC 2020
loleaflet/src/control/Control.JSDialogBuilder.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 3b393ac4fc38f6d19d3ef52a9a4ec9266d20949b
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Mon Apr 20 10:02:22 2020 +0530
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Mon Apr 20 09:54:58 2020 +0200
leaflet: resolved FillGradient command never being sent
Change-Id: I1abfd8a6a977d402ad8fd3b2382dcb74bbd291cc
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92515
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-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 6d54c071f..09ffdb6eb 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -1387,11 +1387,13 @@ L.Control.JSDialogBuilder = L.Control.extend({
if (data.id === 'fillgrad1') {
gradientItem = builder.map['stateChangeHandler'].getItemValue('.uno:FillGradient');
gradientItem.startcolor = color;
- return '.uno:FillGradient?FillGradientJSON:string=' + JSON.stringify(gradientItem);
+ builder.map.sendUnoCommand('.uno:FillGradient?FillGradientJSON:string=' + JSON.stringify(gradientItem));
+ return;
} else if (data.id === 'fillgrad2') {
gradientItem = builder.map['stateChangeHandler'].getItemValue('.uno:FillGradient');
gradientItem.endcolor = color;
- return '.uno:FillGradient?FillGradientJSON:string=' + JSON.stringify(gradientItem);
+ builder.map.sendUnoCommand('.uno:FillGradient?FillGradientJSON:string=' + JSON.stringify(gradientItem));
+ return;
}
var command = data.command + '?Color:string=' + color;
More information about the Libreoffice-commits
mailing list