Reduce dependency on dynamic_cast.

Also switches to checking __clang__ instead of __WXMAC__.
This commit is contained in:
Jeff Young
2024-12-08 21:46:54 +00:00
parent 04b5ccbdb2
commit 753d385473
85 changed files with 394 additions and 371 deletions
+1 -1
View File
@@ -1167,7 +1167,7 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event )
applyPlotSettings();
SETTINGS_MANAGER& mgr = Pgm().GetSettingsManager();
PCBNEW_SETTINGS* cfg = mgr.GetAppSettings<PCBNEW_SETTINGS>();
PCBNEW_SETTINGS* cfg = mgr.GetAppSettings<PCBNEW_SETTINGS>( "pcbnew" );
m_plotOpts.SetColorSettings( mgr.GetColorSettings( cfg->m_ColorTheme ) );