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 comparison of FontMetrics by adding missing mathematical baseline.

Wolthera van Hövell tot Westerflier6d8e61924b50
diff --git a/libs/flake/text/KoSvgText.cpp b/libs/flake/text/KoSvgText.cpp
index 9dabf127b8..f9e25d6d8c 100644
--- a/libs/flake/text/KoSvgText.cpp
+++ b/libs/flake/text/KoSvgText.cpp
@@ -1439,6 +1439,7 @@ bool FontMetrics::operator==(const FontMetrics &other) const {
&& descender == other.descender
&& lineGap == other.lineGap
&& alphabeticBaseline == other.alphabeticBaseline
+ && mathematicalBaseline == other.mathematicalBaseline
&& ideographicUnderBaseline == other.ideographicUnderBaseline
&& ideographicCenterBaseline == other.ideographicCenterBaseline
&& ideographicOverBaseline == other.ideographicOverBaseline