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

Put in workaround for problem with editing text across multiple views.

Wolthera van Hövell tot Westerflier1602606a532d
diff --git a/plugins/tools/svgtexttool/SvgTextTool.cpp b/plugins/tools/svgtexttool/SvgTextTool.cpp
index a7ec9e7860..cca9a50ed5 100644
--- a/plugins/tools/svgtexttool/SvgTextTool.cpp
+++ b/plugins/tools/svgtexttool/SvgTextTool.cpp
@@ -132,7 +132,7 @@ void SvgTextTool::deactivate()
if (canvas2) {
canvas2->viewManager()->textPropertyManager()->setTextPropertiesInterface(nullptr);
}
- m_textCursor.setShape(nullptr);
+ // Exiting text editing mode is handled by requestStrokeEnd
m_hoveredShapeHighlightRect = QPainterPath();
@@ -463,6 +463,7 @@ KoToolSelection *SvgTextTool::selection()
void SvgTextTool::requestStrokeEnd()
{
+ if (!isActivated()) return;
if (!m_textCursor.isAddingCommand() && !m_strategyAddingCommand) {
if (m_interactionStrategy) {
m_dragging = DragMode::None;