From aab01d844617b4d0a7cfb16522aba854b60ffdb4 Mon Sep 17 00:00:00 2001 From: Nimrod Gavish Date: Mon, 10 Nov 2025 15:45:28 +0100 Subject: [PATCH] fix annotation-document error when creating line --- redLayerModule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redLayerModule.py b/redLayerModule.py index 32918f4..57e8e3d 100644 --- a/redLayerModule.py +++ b/redLayerModule.py @@ -466,7 +466,7 @@ def canvasPressEvent(self, event): annotation = sketchNoteDialog.newPoint(self.iface, self.geoSketches[midIdx][2].asGeometry()) if annotation: self.geoSketches[-1][3] = annotation - self.geoSketches[-1][4] = annotation.document().toPlainText() + self.geoSketches[-1][4] = annotation.annotation().document().toPlainText() self.annotatatedSketch = True self.gestures += 1 self.points = 0