diff --git a/examples/GUI/WidgetsDemo.h b/examples/GUI/WidgetsDemo.h index 9b7f1b540c..13cbe73581 100644 --- a/examples/GUI/WidgetsDemo.h +++ b/examples/GUI/WidgetsDemo.h @@ -571,7 +571,10 @@ struct MenuPage : public Component struct CustomComponent : public PopupMenu::CustomComponent { CustomComponent (int widthIn, int heightIn, Colour backgroundIn) - : idealWidth (widthIn), idealHeight (heightIn), background (backgroundIn) + : PopupMenu::CustomComponent (false), + idealWidth (widthIn), + idealHeight (heightIn), + background (backgroundIn) {} void getIdealSize (int& width, int& height) override