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 fontmetrics comparison.

Wolthera van Hövell tot Westerflier5ec1a8613807
diff --git a/libs/flake/text/KoSvgText.cpp b/libs/flake/text/KoSvgText.cpp
index 0403e5d249..4d50314a3e 100644
--- a/libs/flake/text/KoSvgText.cpp
+++ b/libs/flake/text/KoSvgText.cpp
@@ -1462,7 +1462,10 @@ bool FontMetrics::operator==(const FontMetrics &other) const {
&& lineThroughOffset == other.lineThroughOffset
&& lineThroughThickness == other.lineThroughThickness
&& underlineOffset == other.underlineOffset
- && underlineThickness == other.underlineThickness;
+ && underlineThickness == other.underlineThickness
+ && caretRun == other.caretRun
+ && caretRise == other.caretRise
+ && caretOffset == other.caretOffset;
}
int FontMetrics::valueForBaselineValue(Baseline baseline) const {