From 1fdb074233bfeb56ba9a79b3be5e60c07388df31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Mon, 9 Jan 2023 23:58:06 -0300 Subject: [PATCH] UITooltip small fix. --- src/eepp/ui/uitooltip.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/eepp/ui/uitooltip.cpp b/src/eepp/ui/uitooltip.cpp index f4f26c070..edd3b1347 100644 --- a/src/eepp/ui/uitooltip.cpp +++ b/src/eepp/ui/uitooltip.cpp @@ -469,13 +469,13 @@ bool UITooltip::applyProperty( const StyleSheetProperty& attribute ) { case PropertyId::FontFamily: { Font* font = FontManager::instance()->getByName( attribute.asString() ); - if ( NULL != font && font->loaded() ) { + if ( !mUsingCustomStyling && NULL != font && font->loaded() ) setFont( font ); - } break; } case PropertyId::FontSize: - setFontSize( attribute.asDpDimensionI() ); + if ( !mUsingCustomStyling ) + setFontSize( attribute.asDpDimensionI() ); break; case PropertyId::FontStyle: if ( !mUsingCustomStyling )