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 bug 521106. Remove combined shapes from a selected shapes list after deletion.

Elena Sagalaevaeadecc881937
diff --git a/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp b/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp
index 18158448ee..ec4c9156f9 100644
--- a/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp
+++ b/plugins/tools/defaulttool/defaulttool/DefaultTool.cpp
@@ -2444,8 +2444,9 @@ void DefaultToolTextPropertiesInterface::notifyMarkupChanged()
void DefaultToolTextPropertiesInterface::notifyShapeChanged(KoShape::ChangeType type, KoShape *shape)
{
- Q_UNUSED(type)
- Q_UNUSED(shape)
+ if (type == KoShape::Deleted)
+ d->shapes.removeAll(shape);
+
d->compressor.start();
}