[Libreoffice-commits] online.git: loleaflet/src

Pranav Kant pranavk at collabora.co.uk
Thu Mar 23 12:26:28 UTC 2017


 loleaflet/src/layer/AnnotationManager.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5c8fb6786325752a52ac8b9d92a357f6124fc817
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Thu Mar 23 17:54:58 2017 +0530

    loleaflet: Redline has only textRange property
    
    Change-Id: I534f327cb71cddec4b3437f17f92ee4b24ed488a

diff --git a/loleaflet/src/layer/AnnotationManager.js b/loleaflet/src/layer/AnnotationManager.js
index 5b493f1e..b4ff1614 100644
--- a/loleaflet/src/layer/AnnotationManager.js
+++ b/loleaflet/src/layer/AnnotationManager.js
@@ -280,7 +280,7 @@ L.AnnotationManager = L.Class.extend({
 			if (modified) {
 				var modifiedObj;
 				if (changetrack) {
-					obj.redline.anchorPos = L.LOUtil.stringToBounds(obj.redline.anchorPos);
+					obj.redline.anchorPos = L.LOUtil.stringToBounds(obj.redline.textRange);
 					obj.redline.text = obj.redline.comment;
 					obj.redline.id = id;
 					obj.redline.trackchange = true;


More information about the Libreoffice-commits mailing list