diff --git a/common/base_struct.cpp b/common/base_struct.cpp index 793864ce25..9a20d84aac 100644 --- a/common/base_struct.cpp +++ b/common/base_struct.cpp @@ -35,10 +35,26 @@ #include #include #include +#include #include "../eeschema/dialogs/dialog_schematic_find.h" +static const unsigned char dummy_png[] = { + 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, + 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff, + 0x61, 0x00, 0x00, 0x00, 0x5f, 0x49, 0x44, 0x41, 0x54, 0x38, 0xcb, 0x63, 0xf8, 0xff, 0xff, 0x3f, + 0x03, 0x25, 0x98, 0x61, 0x68, 0x1a, 0x00, 0x04, 0x46, 0x40, 0xfc, 0x02, 0x88, 0x45, 0x41, 0x1c, + 0x76, 0x20, 0xfe, 0x01, 0xc4, 0xbe, 0x24, 0x18, 0x60, 0x01, 0xc4, 0x20, 0x86, 0x04, 0x88, 0xc3, + 0x01, 0xe5, 0x04, 0x0c, 0xb8, 0x01, 0x37, 0x81, 0xf8, 0x04, 0x91, 0xf8, 0x0a, 0x54, 0x8f, 0x06, + 0xb2, 0x01, 0x9b, 0x81, 0x78, 0x02, 0x91, 0x78, 0x05, 0x54, 0x8f, 0xca, 0xe0, 0x08, 0x03, 0x36, + 0xa8, 0xbf, 0xec, 0xc8, 0x32, 0x80, 0xcc, 0x84, 0x04, 0x0a, 0xbc, 0x1d, 0x40, 0x2c, 0xc8, 0x30, + 0xf4, 0x33, 0x13, 0x00, 0x6b, 0x1a, 0x46, 0x7b, 0x68, 0xe7, 0x0f, 0x0b, 0x00, 0x00, 0x00, 0x00, + 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82, +}; + +static const BITMAP_OPAQUE dummy_xpm[1] = {{ dummy_png, sizeof( dummy_png ), "dummy_xpm" }}; + const wxString traceFindReplace( wxT( "KicadFindReplace" ) ); @@ -250,6 +266,10 @@ void EDA_ITEM::ViewGetLayers( int aLayers[], int& aCount ) const aLayers[0] = 0; } +BITMAP_DEF EDA_ITEM::GetMenuImage() const +{ + return dummy_xpm; +} #if defined(DEBUG) diff --git a/include/base_struct.h b/include/base_struct.h index 35312ad63e..7f57f58cf2 100644 --- a/include/base_struct.h +++ b/include/base_struct.h @@ -395,7 +395,7 @@ public: * images. * @return The menu image associated with the item. */ - virtual BITMAP_DEF GetMenuImage() const { return right_xpm; } + virtual BITMAP_DEF GetMenuImage() const; /** * Function Matches