From bfc6c74a3080475e7d9a84371cfe9adcb5982518 Mon Sep 17 00:00:00 2001 From: Dominik Wernberger Date: Wed, 19 Jun 2024 22:53:49 +0200 Subject: [PATCH] Allow non MS-API conform lfOutPrecision --- src/Win32/LOGFONTA.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Win32/LOGFONTA.hpp b/src/Win32/LOGFONTA.hpp index b0d6296..3a24bb0 100644 --- a/src/Win32/LOGFONTA.hpp +++ b/src/Win32/LOGFONTA.hpp @@ -40,9 +40,11 @@ class tagLOGFONTA // throw std::runtime_error(fmt::format("0 <= lfWeight <= 1000 must hold but lfWeight = {}", lfWeight)); } + // Don't know how but lfOutPrecision might have values + // out of it's 'valid' range if(lfOutPrecision > 10U) { - throw std::runtime_error(fmt::format("lfOutPrecision <= 10 must hold but lfOutPrecision = {}", lfOutPrecision)); + // throw std::runtime_error(fmt::format("lfOutPrecision <= 10 must hold but lfOutPrecision = {}", lfOutPrecision)); } if(lfQuality > 6U)