Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix update of the text shape after undoing text-flow-grouping

Dmitry Kazakovcd42bebb6d9e
diff --git a/libs/flake/text/KoSvgTextShape.cpp b/libs/flake/text/KoSvgTextShape.cpp
index a5cec840df..b8528a3ba7 100644
--- a/libs/flake/text/KoSvgTextShape.cpp
+++ b/libs/flake/text/KoSvgTextShape.cpp
@@ -2127,6 +2127,7 @@ void KoSvgTextShape::addShapeContours(QList<KoShape *> shapes, const bool inside
shape->addDependee(this);
}
}
+ notifyChanged(); // notify shape manager that our geometry has changed
d->updateTextWrappingAreas();
d->updateInternalShapesList();
shapeChangedPriv(ContentChanged);
@@ -2153,6 +2154,7 @@ void KoSvgTextShape::removeShapesFromContours(QList<KoShape *> shapes, bool call
d->shapeGroup->removeShape(shape);
}
if (callUpdate) {
+ notifyChanged(); // notify shape manager that our geometry has changed
d->updateTextWrappingAreas();
d->updateInternalShapesList();
shapeChangedPriv(ContentChanged);