loleaflet/src/layer/tile/CalcTileLayer.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-)
New commits: commit c77f978fc85778a183b1dc84be9a324cbbe7bf83 Author: Dennis Francis <dennis.fran...@collabora.com> AuthorDate: Mon May 11 15:17:49 2020 +0530 Commit: Dennis Francis <dennis.fran...@collabora.com> CommitDate: Sun Jul 5 09:54:00 2020 +0200 Move the ViewRowColumnHeaders handling code into its own method _handleViewRowColumnHeadersMsg() Change-Id: Ib0b83941dcc9bc0bed42269fafbc61fcd7877bc6 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97938 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Dennis Francis <dennis.fran...@collabora.com> diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js index 684d559c1..323fcc711 100644 --- a/loleaflet/src/layer/tile/CalcTileLayer.js +++ b/loleaflet/src/layer/tile/CalcTileLayer.js @@ -454,6 +454,16 @@ L.CalcTileLayer = L.TileLayer.extend({ } }, + _handleViewRowColumnHeadersMsg: function (jsonMsgObj) { + this._map.fire('viewrowcolumnheaders', { + data: jsonMsgObj, + cursor: this._getCursorPosSize(), + selection: this._getSelectionHeaderData(), + converter: this._twipsToPixels, + context: this + }); + }, + _onCommandValuesMsg: function (textMsg) { var jsonIdx = textMsg.indexOf('{'); if (jsonIdx === -1) @@ -466,13 +476,7 @@ L.CalcTileLayer = L.TileLayer.extend({ var comment; if (values.commandName === '.uno:ViewRowColumnHeaders') { - this._map.fire('viewrowcolumnheaders', { - data: values, - cursor: this._getCursorPosSize(), - selection: this._getSelectionHeaderData(), - converter: this._twipsToPixels, - context: this - }); + this._handleViewRowColumnHeadersMsg(values); } else if (values.comments) { this.clearAnnotations(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits