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++

Make Shape select tool edit the current contour text shape properties in contour mode.

Wolthera van Hövell tot Westerfliercb062a8d1bd3
diff --git a/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp b/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp
index 9bdc592bc8..89495fbc53 100644
--- a/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp
+++ b/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp
@@ -2344,8 +2344,11 @@ void DefaultToolTextPropertiesInterface::slotSelectionChanged()
if (!shape) continue;
shape->removeShapeChangeListener(this);
}
- QList<KoShape*> shapes = d->parent->canvas()->selectedShapesProxy()->selection()->selectedEditableShapes();
- d->shapes = shapes;
+ if (d->parent->canvas()->textShapeManagerEnabled()) {
+ d->shapes = {d->parent->canvas()->textShapeManagerEnabled()};
+ } else {
+ d->shapes = d->parent->canvas()->selectedShapesProxy()->selection()->selectedEditableShapes();
+ }
Q_FOREACH(KoShape *shape, d->shapes) {
if (!shape) continue;