gentoo/app-text/diffpdf/files/diffpdf-2.1.3-qt6.10.patch
Andreas Sturmlechner 92fda0d8d6
app-text/diffpdf: Fix build w/ Qt-6.10.1
Thanks-to: Sam James <sam@gentoo.org>
Closes: https://bugs.gentoo.org/966860
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-12-10 21:58:56 +01:00

11 lines
524 B
Diff

--- a/textitem.cpp
+++ b/textitem.cpp
@@ -161,7 +161,7 @@ void TextItems::debug(const int page, const int ToleranceY,
const QRect rect = item.toRect();
out << item.text;
if (!ComparingWords)
- out << QString(" %1").arg(item.text.at(0).unicode(), 4, 16,
+ out << QString(" %1").arg(static_cast<int>(item.text.at(0).unicode()), 4, 16,
QChar('0'));
if (Yx) {
const int y = normalizedY(static_cast<int>(item.rect.y()),