diff --git a/eeschema/sch_base_frame.h b/eeschema/sch_base_frame.h index 5206cc0721..ba6a9ee4c4 100644 --- a/eeschema/sch_base_frame.h +++ b/eeschema/sch_base_frame.h @@ -114,7 +114,7 @@ public: SCH_SCREEN* GetScreen() const override; void SetScreen( BASE_SCREEN* aScreen ) override; - EESCHEMA_SETTINGS* eeconfig() const { return static_cast( config() ); } + EESCHEMA_SETTINGS* eeconfig() const { return dynamic_cast( config() ); } void LoadSettings( APP_SETTINGS_BASE* aCfg ) override; void SaveSettings( APP_SETTINGS_BASE* aCfg ) override;