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

Default CSSQmlUnitConverter's percentage reference to default font-size.

Wolthera van Hövell tot Westerflier9a540836b952
diff --git a/plugins/dockers/textproperties/CssQmlUnitConverter.cpp b/plugins/dockers/textproperties/CssQmlUnitConverter.cpp
index 7a3fa3f651..8fec6c741b 100644
--- a/plugins/dockers/textproperties/CssQmlUnitConverter.cpp
+++ b/plugins/dockers/textproperties/CssQmlUnitConverter.cpp
@@ -19,7 +19,7 @@ struct CssQmlUnitConverter::Private {
qreal dataValue{0.0};
int dataUnit{-1};
int userUnit{-1};
- qreal percentageReference;
+ qreal percentageReference {12.0}; ///< 12.0 pt is the default we use for font-size, which most css text properties' % resolve against.
KoUnit absoluteUnitConverter;