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

Simplify rich text splitting code a little.

Wolthera van Hövell tot Westerflier9636cb32dd78
diff --git a/libs/flake/text/KoSvgTextShape_p.h b/libs/flake/text/KoSvgTextShape_p.h
index 678621666f..7fe4f8e936 100644
--- a/libs/flake/text/KoSvgTextShape_p.h
+++ b/libs/flake/text/KoSvgTextShape_p.h
@@ -514,8 +514,6 @@ public:
duplicate2.text = contentElement->text;
duplicate2.removeText(zero, start);
contentElement->text.clear();
- duplicate.properties.inheritFrom(contentElement->properties);
- duplicate2.properties.inheritFrom(contentElement->properties);
tree.insert(childBegin(contentElement), duplicate);
tree.insert(childEnd(contentElement), duplicate2);
}