From 28a4813c71a984da1c801e809eb740af4408ec6f Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 24 May 2020 16:10:16 -0400 Subject: [PATCH] Force footprint viewers to have a cursor Fixes https://gitlab.com/kicad/code/kicad/-/issues/4528 --- cvpcb/display_footprints_frame.cpp | 3 +++ pcbnew/footprint_viewer_frame.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cvpcb/display_footprints_frame.cpp b/cvpcb/display_footprints_frame.cpp index cd3e2e9f80..a31ab29085 100644 --- a/cvpcb/display_footprints_frame.cpp +++ b/cvpcb/display_footprints_frame.cpp @@ -275,6 +275,9 @@ void DISPLAY_FOOTPRINTS_FRAME::LoadSettings( APP_SETTINGS_BASE* aCfg ) auto cfg = dynamic_cast( aCfg ); 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 ); SetDisplayOptions( cfg->m_FootprintViewerDisplayOptions ); diff --git a/pcbnew/footprint_viewer_frame.cpp b/pcbnew/footprint_viewer_frame.cpp index 439d724e1e..a4a726080e 100644 --- a/pcbnew/footprint_viewer_frame.cpp +++ b/pcbnew/footprint_viewer_frame.cpp @@ -722,6 +722,9 @@ void FOOTPRINT_VIEWER_FRAME::LoadSettings( APP_SETTINGS_BASE* aCfg ) auto cfg = dynamic_cast( aCfg ); 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 ); // Fetch grid settings from Footprint Editor