From b83b0e6006106259ee73e2579af340fb70f8dad1 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sun, 16 Nov 2025 08:25:01 +0000 Subject: [PATCH] oops git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@742 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index 43898ff..267ddac 100644 --- a/src/core.c +++ b/src/core.c @@ -521,8 +521,10 @@ void MwSetDefault(MwWidget handle) { inherit_integer(handle, MwNmodernLook, 1); #endif #if defined(USE_STB_TRUETYPE) || defined(USE_FREETYPE2) - set_font(handle); - set_boldfont(handle); + if(handle->widget_class != NULL){ + set_font(handle); + set_boldfont(handle); + } #endif }