From 9a0734a78f3f99f7fef9b5aa5110060209c94275 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sun, 16 Nov 2025 08:25:46 +0000 Subject: [PATCH] oops git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@743 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/core.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core.c b/src/core.c index 267ddac..e7f63c1 100644 --- a/src/core.c +++ b/src/core.c @@ -513,7 +513,7 @@ static void set_boldfont(MwWidget handle) { #endif void MwSetDefault(MwWidget handle) { - MwLLSetCursor(handle->lowlevel, &MwCursorDefault, &MwCursorDefaultMask); + if(handle->lowlevel != NULL) MwLLSetCursor(handle->lowlevel, &MwCursorDefault, &MwCursorDefaultMask); #ifdef USE_CLASSIC_THEME inherit_integer(handle, MwNmodernLook, 0); @@ -521,10 +521,8 @@ void MwSetDefault(MwWidget handle) { inherit_integer(handle, MwNmodernLook, 1); #endif #if defined(USE_STB_TRUETYPE) || defined(USE_FREETYPE2) - if(handle->widget_class != NULL){ - set_font(handle); - set_boldfont(handle); - } + set_font(handle); + set_boldfont(handle); #endif }