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 build on Qt6 by testing as double.

Wolthera van Hövell tot Westerflierff1061d31dba
diff --git a/plugins/tools/svgtexttool/SvgTextShortCuts.cpp b/plugins/tools/svgtexttool/SvgTextShortCuts.cpp
index 2e3daf6561..f1ed1c145b 100644
--- a/plugins/tools/svgtexttool/SvgTextShortCuts.cpp
+++ b/plugins/tools/svgtexttool/SvgTextShortCuts.cpp
@@ -242,7 +242,7 @@ bool testPropertyEnabled(const SvgTextShortcutInfo &info, const QList<KoSvgTextP
return currentVal.length.value == testValue.toDouble();
}
}
- return (testValue <= oldValue);
+ return (testValue.toDouble() <= oldValue.toDouble());
}
return false;
}