loleaflet/src/layer/vector/SVGGroup.js |   18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

New commits:
commit d34f8eb1515e3fad9cb6d83456f0accadbbabf7c
Author:     Henry Castro <[email protected]>
AuthorDate: Wed Jan 22 10:49:21 2020 -0400
Commit:     Henry Castro <[email protected]>
CommitDate: Wed Jan 22 19:53:32 2020 +0100

    loleaflet: remove the graphics filter to edit text
    
    This was a bad idea, since 'XTEXT_PAINTSHAPE_BEGIN' is not unique
    to identify graphic text, I will find another solution
    
    Change-Id: Ic60f53254e461299b24251aa325a42a1eb8e896e
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87193
    Reviewed-by: Henry Castro <[email protected]>
    Tested-by: Henry Castro <[email protected]>

diff --git a/loleaflet/src/layer/vector/SVGGroup.js 
b/loleaflet/src/layer/vector/SVGGroup.js
index 2373f1f85..accec4b63 100644
--- a/loleaflet/src/layer/vector/SVGGroup.js
+++ b/loleaflet/src/layer/vector/SVGGroup.js
@@ -50,18 +50,12 @@ L.SVGGroup = L.Layer.extend({
                if (doc.lastChild.localName !== 'svg' || this._dragStarted)
                        return;
 
-               if (svgString.indexOf('XTEXT_PAINTSHAPE_BEGIN') !== -1) {
-                       this._svg = this._path.insertBefore(doc.lastChild, 
this._rect._path);
-                       this._rect._path.setAttribute('pointer-events', 
'visibleStroke');
-                       this._svg.setAttribute('pointer-events', 'none');
-               } else {
-                       L.DomUtil.remove(this._rect._path);
-                       this._svg = this._path.appendChild(doc.lastChild);
-                       this._svg.setAttribute('pointer-events', 
'visiblePainted');
-                       this._dragShape = this._svg;
-                       if (!this.options.manualDrag) {
-                               L.DomEvent.on(this._svg, 'mousedown', 
this._onDragStart, this);
-                       }
+               L.DomUtil.remove(this._rect._path);
+               this._svg = this._path.appendChild(doc.lastChild);
+               this._svg.setAttribute('pointer-events', 'visiblePainted');
+               this._dragShape = this._svg;
+               if (!this.options.manualDrag) {
+                       L.DomEvent.on(this._svg, 'mousedown', 
this._onDragStart, this);
                }
 
                this._svg.setAttribute('opacity', 0);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to