Fix compil issue on Linux

This commit is contained in:
jean-pierre charras 2022-01-20 13:37:42 +01:00
parent 05c414c816
commit 8781f46d76
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ void FOOTPRINT_EDIT_FRAME::SaveSettings( APP_SETTINGS_BASE* aCfg )
EDA_ANGLE FOOTPRINT_EDIT_FRAME::GetRotationAngle() const
{
FOOTPRINT_EDITOR_SETTINGS* cfg = GetSettings();
FOOTPRINT_EDITOR_SETTINGS* cfg = const_cast<FOOTPRINT_EDIT_FRAME*>( this )->GetSettings();
return cfg ? cfg->m_RotationAngle : ANGLE_90;
}