From 5e63b255046830ae7920f516309161d6c024d4b4 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Wed, 11 Apr 2012 22:56:25 -0700 Subject: [PATCH] FL: Reset boxtypes before activating new theme. --- FL/Fl_Theme.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FL/Fl_Theme.C b/FL/Fl_Theme.C index d508402..8f2937a 100644 --- a/FL/Fl_Theme.C +++ b/FL/Fl_Theme.C @@ -146,6 +146,9 @@ Fl_Theme::set ( const char *name ) for ( Fl_Theme *t = first; t; t = t->next ) if ( !strcasecmp( t->name(), name ) ) { + /* reset boxtypes */ + Fl::reload_scheme(); + printf( "Theme set to %s\n", t->name() ); t->_init_func(); Fl_Theme::_current = t;