diff --git a/src/gui/text/qfontdatabase.cpp b/src/gui/text/qfontdatabase.cpp index 8134e3012b..37d3756e52 100644 --- a/src/gui/text/qfontdatabase.cpp +++ b/src/gui/text/qfontdatabase.cpp @@ -50,7 +50,6 @@ #include #include -#include #include @@ -1678,7 +1677,7 @@ QList QFontDatabase::pointSizes(const QString &family, for (int l = 0; l < style->count; l++) { const QtFontSize *size = style->pixelSizes + l; - if (size->pixelSize != 0 && size->pixelSize != USHRT_MAX) { + if (size->pixelSize != 0 && size->pixelSize != SMOOTH_SCALABLE) { const uint pointSize = qRound(size->pixelSize * 72.0 / dpi); if (! sizes.contains(pointSize)) sizes.append(pointSize); @@ -1781,7 +1780,7 @@ QList QFontDatabase::smoothSizes(const QString &family, for (int l = 0; l < style->count; l++) { const QtFontSize *size = style->pixelSizes + l; - if (size->pixelSize != 0 && size->pixelSize != USHRT_MAX) { + if (size->pixelSize != 0 && size->pixelSize != SMOOTH_SCALABLE) { const uint pointSize = qRound(size->pixelSize * 72.0 / dpi); if (! sizes.contains(pointSize)) sizes.append(pointSize);