diff --git a/include/draw_frame.h b/include/draw_frame.h index 135d01478f..f7fb6ed023 100644 --- a/include/draw_frame.h +++ b/include/draw_frame.h @@ -148,6 +148,12 @@ protected: */ virtual void unitsChangeRefresh(); + /** + * Helper function to coerce all colors to legacy-compatible when + * switching from GAL to legacy canvas + */ + virtual void forceColorsToLegacy() {} + /** * Function GeneralControlKeyMovement * Handle the common part of GeneralControl dedicated to global diff --git a/include/wxPcbStruct.h b/include/wxPcbStruct.h index 84788ef517..c5c7b57179 100644 --- a/include/wxPcbStruct.h +++ b/include/wxPcbStruct.h @@ -123,11 +123,8 @@ protected: */ virtual void SwitchCanvas( wxCommandEvent& aEvent ) override; - /** - * Helper function to coerce all colors to legacy-compatible when - * switching from GAL to legacy canvas - */ - void forceColorsToLegacy(); + ///> @copydoc EDA_DRAW_FRAME::forceColorsToLegacy() + virtual void forceColorsToLegacy() override; #if defined(KICAD_SCRIPTING) && defined(KICAD_SCRIPTING_ACTION_MENU) /**