diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp index 66db807aae..b766c1c0cc 100644 --- a/samples/widgets/widgets.cpp +++ b/samples/widgets/widgets.cpp @@ -240,10 +240,7 @@ private: if ( level == wxLOG_Trace ) { if ( m_logOld ) - { - // cast is needed to call protected method - ((LboxLogger *)m_logOld)->DoLog(level, str, t); - } + m_logOld->Log(level, str, t); } else {