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:
parent
269f420f8d
commit
5315d1be22
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue