Eeschema: fix an option toolbar refresh bug.

For some reason, changing languages was causing the options (left) toolbar
to get redrawn with some of the main toolbar entries.  Changing the window
size causes the toolbar to be redrawn correctly.  The normal call to
function wxWindow::Refresh() does not.

Fixes lp:1816492

https://bugs.launchpad.net/kicad/+bug/1816492
This commit is contained in:
Wayne Stambaugh 2019-02-25 13:26:14 -05:00
parent 269f420f8d
commit 5315d1be22
1 changed files with 8 additions and 0 deletions

View File

@ -1534,6 +1534,14 @@ void SCH_EDIT_FRAME::ShowChangedLanguage()
// status bar // status bar
UpdateMsgPanel(); UpdateMsgPanel();
// This ugly hack is to fix an option(left) toolbar update bug that seems to only affect
// windows. See https://bugs.launchpad.net/kicad/+bug/1816492. For some reason, calling
// wxWindow::Refresh() does not resolve the issue. Only a resize event seems to force the
// toolbar to update correctly.
#if defined( __WXMSW__ )
PostSizeEvent();
#endif
} }