Force footprint viewers to have a cursor

Fixes https://gitlab.com/kicad/code/kicad/-/issues/4528
This commit is contained in:
Jon Evans 2020-05-24 16:10:16 -04:00
parent a52435bbb0
commit 28a4813c71
2 changed files with 6 additions and 0 deletions

View File

@ -275,6 +275,9 @@ void DISPLAY_FOOTPRINTS_FRAME::LoadSettings( APP_SETTINGS_BASE* aCfg )
auto cfg = dynamic_cast<CVPCB_SETTINGS*>( aCfg ); auto cfg = dynamic_cast<CVPCB_SETTINGS*>( aCfg );
wxCHECK( cfg, /* void */ ); wxCHECK( cfg, /* void */ );
// We don't allow people to change this right now, so make sure it's on
GetWindowSettings( cfg )->cursor.always_show_cursor = true;
EDA_DRAW_FRAME::LoadSettings( cfg ); EDA_DRAW_FRAME::LoadSettings( cfg );
SetDisplayOptions( cfg->m_FootprintViewerDisplayOptions ); SetDisplayOptions( cfg->m_FootprintViewerDisplayOptions );

View File

@ -722,6 +722,9 @@ void FOOTPRINT_VIEWER_FRAME::LoadSettings( APP_SETTINGS_BASE* aCfg )
auto cfg = dynamic_cast<PCBNEW_SETTINGS*>( aCfg ); auto cfg = dynamic_cast<PCBNEW_SETTINGS*>( aCfg );
wxCHECK( cfg, /*void*/ ); wxCHECK( cfg, /*void*/ );
// We don't allow people to change this right now, so make sure it's on
GetWindowSettings( cfg )->cursor.always_show_cursor = true;
PCB_BASE_FRAME::LoadSettings( aCfg ); PCB_BASE_FRAME::LoadSettings( aCfg );
// Fetch grid settings from Footprint Editor // Fetch grid settings from Footprint Editor