From f337e234c4dd5fd38fc9f0a479be02964703ab4f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 14 Jan 2023 14:01:24 +0000 Subject: [PATCH] Fix fractional point size comparison in the test --- tests/font/fonttest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/font/fonttest.cpp b/tests/font/fonttest.cpp index 4985762b1e..936c8b2de9 100644 --- a/tests/font/fonttest.cpp +++ b/tests/font/fonttest.cpp @@ -488,7 +488,7 @@ TEST_CASE("wxFontList::FindOrCreate", "[font][fontinfo][fontlist]") font1 = wxTheFontList->FindOrCreateFont(pointSizeInfo); REQUIRE(font1); REQUIRE(font1->IsOk()); - REQUIRE(font1->GetPointSize() == pointSize); + REQUIRE(font1->GetFractionalPointSize() == pointSize); // font 2 should be font1 from the font list "cache" font2 = wxTheFontList->FindOrCreateFont(pointSizeInfo);