loleaflet/src/control/Control.PartsPreview.js | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit d5578e30bc2abf695d25992f8846a3e8acffe387 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Date: Mon May 9 23:40:41 2016 -0400 loleaflet: prevent viewers from changing Impress slides Change-Id: I4928d111bde8c712c79ec566b0ca4520995ac598 Reviewed-on: https://gerrit.libreoffice.org/24813 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/loleaflet/src/control/Control.PartsPreview.js b/loleaflet/src/control/Control.PartsPreview.js index ec7a0ce..ad9d6b5 100644 --- a/loleaflet/src/control/Control.PartsPreview.js +++ b/loleaflet/src/control/Control.PartsPreview.js @@ -78,6 +78,8 @@ L.Control.PartsPreview = L.Control.extend({ }, _setPart: function (e) { + if (!map._editlock) + return; var part = $('.parts-preview .mCSB_container .preview-frame').index(e.target.parentNode); if (part !== null) { this._map.setPart(parseInt(part)); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits