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++
Still use a QMap, but use push_back instead of push_front
Halla Rempt930efc07745c
diff --git a/libs/flake/text/KoSvgTextShapeMarkupConverter.cpp b/libs/flake/text/KoSvgTextShapeMarkupConverter.cppindex 926fd05bd0..a5b641c575 100644--- a/libs/flake/text/KoSvgTextShapeMarkupConverter.cpp+++ b/libs/flake/text/KoSvgTextShapeMarkupConverter.cpp@@ -473,7 +473,7 @@ QTextFormat findMostCommonFormat(const QList<QTextFormat> &allFormats)it->second += 1;} else {// Add with initial frequency of 1 if met for the first time- valueFrequencies.push_front({formatPropValue, 1});+ valueFrequencies.push_back({formatPropValue, 1});}}}