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 520939. Deselect deleted text shape.

Elena Sagalaeva65b10b98c9b0
diff --git a/plugins/tools/svgtexttool/SvgTextTool.cpp b/plugins/tools/svgtexttool/SvgTextTool.cpp
index bc75007c18..515f191e8b 100644
--- a/plugins/tools/svgtexttool/SvgTextTool.cpp
+++ b/plugins/tools/svgtexttool/SvgTextTool.cpp
@@ -460,7 +460,7 @@ void SvgTextTool::slotShapeSelectionChanged()
return;
}
KoSvgTextShape *const shape = selectedShape();
- if (shape != m_textCursor.shape()) {
+ if (shape != m_textCursor.shape() || shape == nullptr) {
m_textCursor.setShape(shape);
m_textOnPathHelper.setShape(shape);
if (shape) {