[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-0' - loleaflet/src
Marco Cecchetti
marco.cecchetti at collabora.com
Tue Dec 19 10:23:37 UTC 2017
loleaflet/src/layer/tile/CalcTileLayer.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit af0993189f510abc067e6682fb41e1a839d62a07
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date: Mon Dec 18 21:58:44 2017 +0100
loleaflet: calc: wrong data in firing of updaterowcolumnheaders event
two fixes:
- wrong data in firing of updaterowcolumnheaders event (messing up
pg-up/pg-down)
- console error message about invocation of a method for an undefined
object (annotation.mark)
Change-Id: I4e7d9de38ffe18b477c99147966fd91d7a460841
Reviewed-on: https://gerrit.libreoffice.org/46746
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index c628bfb8..d0296b15 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -211,7 +211,7 @@ L.CalcTileLayer = L.TileLayer.extend({
this._map.fire('updaterowcolumnheaders', {x: 0, y: this._map._getTopLeftPoint().y, offset: {x: 0, y: undefined}});
this._map._socket.sendMessage('commandvalues command=.uno:ViewAnnotationsPosition');
} else if (textMsg.startsWith('invalidateheader: all')) {
- this._map.fire('updaterowcolumnheaders', {x: this._map._getTopLeftPoint().x, y: this._map._getTopLeftPoint(), offset: {x: undefined, y: undefined}});
+ this._map.fire('updaterowcolumnheaders', {x: this._map._getTopLeftPoint().x, y: this._map._getTopLeftPoint().y, offset: {x: undefined, y: undefined}});
this._map._socket.sendMessage('commandvalues command=.uno:ViewAnnotationsPosition');
} else {
L.TileLayer.prototype._onMessage.call(this, textMsg, img);
@@ -469,7 +469,9 @@ L.CalcTileLayer = L.TileLayer.extend({
var annotation = this._annotations[comment.tab][comment.id];
if (annotation) {
annotation.setLatLngBounds(comment.cellPos);
- annotation.mark.setLatLng(comment.cellPos.getNorthEast());
+ if (annotation.mark) {
+ annotation.mark.setLatLng(comment.cellPos.getNorthEast());
+ }
}
}
this.showAnnotations();
More information about the Libreoffice-commits
mailing list