[Libreoffice-commits] online.git: loleaflet/src
Henry Castro
hcastro at collabora.com
Sun Jun 28 21:21:42 PDT 2015
loleaflet/src/layer/tile/TileLayer.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit fa3b208b7f56d538497f73d84434850670256eeb
Author: Henry Castro <hcastro at collabora.com>
Date: Mon Jun 29 00:18:04 2015 -0400
loleaflet: Selecting table does not reset handler.
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 3e470ec..a36d2a0 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -887,10 +887,10 @@ L.TileLayer = L.GridLayer.extend({
// Update text selection handlers.
_onUpdateTextSelection: function () {
- if (this._selections.getLayers().length !== 0) {
- if ( this._startMarker.isDragged === true || this._endMarker.isDragged === true)
- return;
+ if ( this._startMarker.isDragged === true || this._endMarker.isDragged === true)
+ return;
+ if (this._selections.getLayers().length !== 0) {
if (!this._isEmptyRectangle(this._textSelectionStart)) {
this._startMarker.setLatLng(this._textSelectionStart.getSouthWest());
this._map.addLayer(this._startMarker);
More information about the Libreoffice-commits
mailing list