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

Disable text relayout when only text bg color or stroke changes.

Wolthera van Hövell tot Westerflier5306771f516c
diff --git a/libs/flake/text/KoSvgTextShape.cpp b/libs/flake/text/KoSvgTextShape.cpp
index dbc93e884a..3b0e9f0299 100644
--- a/libs/flake/text/KoSvgTextShape.cpp
+++ b/libs/flake/text/KoSvgTextShape.cpp
@@ -122,7 +122,7 @@ void KoSvgTextShape::shapeChanged(ChangeType type, KoShape *shape)
}
KoShape::shapeChanged(type, shape);
- if (type == StrokeChanged || type == BackgroundChanged || type == ContentChanged) {
+ if (type == ContentChanged) {
relayout();
}
}