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++
Allow character properties on paragraphs.
Wolthera van Hövell tot Westerflier6a81ad09188e
diff --git a/libs/flake/resources/KoCssStylePreset.cpp b/libs/flake/resources/KoCssStylePreset.cppindex d8fa7a01f6..5dfec800b4 100644--- a/libs/flake/resources/KoCssStylePreset.cpp+++ b/libs/flake/resources/KoCssStylePreset.cpp@@ -166,16 +166,9 @@ KoShape* KoCssStylePreset::generateSampleShape() const// Remove properties that cannot be edited.Q_FOREACH(KoSvgTextProperties::PropertyId p, modifiedProps.properties()) {- if (KoSvgTextProperties::propertyIsBlockOnly(p)) {- if (removeParagraph) {- modifiedProps.removeProperty(p);- }- } else {- if (!removeParagraph) {- modifiedProps.removeProperty(p);- }+ if (KoSvgTextProperties::propertyIsBlockOnly(p) && removeParagraph) {+ modifiedProps.removeProperty(p);}-}// This one is added after removing, because otherwise, the type is removed...modifiedProps.setProperty(KoSvgTextProperties::KraTextStyleType, type);