calligra/calligra-3.2.1-Fix-Bug-423038-Annotation-shape-crashes-on-paste.patch

30 lines
1.0 KiB
Diff
Raw Normal View History

From 2dea3f29791a2c157876824ce3e59291eeb0b200 Mon Sep 17 00:00:00 2001
From: Dag Andersen <danders@get2net.dk>
Date: Tue, 16 Jun 2020 10:06:01 +0200
Subject: [PATCH 03/54] Fix Bug 423038 - Annotation shape crashes on paste
BUG: 423038
Reviewers:
CCMAIL: cbo@boemann.dk
---
plugins/textshape/AnnotationTextShapeFactory.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/textshape/AnnotationTextShapeFactory.cpp b/plugins/textshape/AnnotationTextShapeFactory.cpp
index 6467222ce32..c28ed1eeb23 100644
--- a/plugins/textshape/AnnotationTextShapeFactory.cpp
+++ b/plugins/textshape/AnnotationTextShapeFactory.cpp
@@ -103,6 +103,8 @@ KoShape *AnnotationTextShapeFactory::createDefaultShape(KoDocumentResourceManage
document.setChangeTracker(changeTracker);
}
+ document.setShapeController(documentResources->shapeController());
+
//update the resources of the document
annotation->updateDocumentData();
annotation->setImageCollection(documentResources->imageCollection());
--
2.31.1