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 updating text from undo info.

Wolthera van Hövell tot Westerflier9e5359d55fc0
diff --git a/libs/flake/text/KoSvgTextShape.cpp b/libs/flake/text/KoSvgTextShape.cpp
index 302589cbcf..8fe018ad07 100644
--- a/libs/flake/text/KoSvgTextShape.cpp
+++ b/libs/flake/text/KoSvgTextShape.cpp
@@ -1916,6 +1916,7 @@ void KoSvgTextShape::setMemento(const KoSvgTextShapeMementoSP memento)
if (d->bulkActionState) {
d->bulkActionState->layoutSetFromMemento = true;
}
+ notifyChanged();
notifyCursorPosChanged(0, 0);
notifyMarkupChanged();
}
@@ -1938,6 +1939,7 @@ void KoSvgTextShape::setMemento(const KoSvgTextShapeMementoSP memento, int pos,
d->bulkActionState->layoutSetFromMemento = true;
}
}
+ notifyChanged();
notifyCursorPosChanged(pos, anchor);
notifyMarkupChanged();
}