diff --git a/samples/statbar/statbar.cpp b/samples/statbar/statbar.cpp index 6c8be3104f..588d97b2f5 100644 --- a/samples/statbar/statbar.cpp +++ b/samples/statbar/statbar.cpp @@ -316,8 +316,8 @@ void MyFrame::DoCreateStatusBar(MyFrame::StatBarKind kind) wxFAIL_MSG("unknown stat bar kind"); } - PositionStatusBar(); GetStatusBar()->Show(); + PositionStatusBar(); m_statbarKind = kind; }