Don't force callers of GetAppSettings to implement exception processing.

This commit is contained in:
Jeff Young
2025-06-14 20:25:59 +01:00
parent 5ed332771c
commit 18e107529a
112 changed files with 1189 additions and 1565 deletions
+1 -4
View File
@@ -365,10 +365,7 @@ COLOR_SETTINGS* DIALOG_PLOT_SCHEMATIC::getColorSettings()
int selection = m_colorTheme->GetSelection();
if( selection < 0 )
{
return m_editFrame->GetSettingsManager()->GetColorSettings(
COLOR_SETTINGS::COLOR_BUILTIN_DEFAULT );
}
return ::GetColorSettings( COLOR_SETTINGS::COLOR_BUILTIN_DEFAULT );
return static_cast<COLOR_SETTINGS*>( m_colorTheme->GetClientData( selection ) );
}