All is going well, however when I come to create the bitmap for the toolbar, I get the following assert:
Code: Select all
ASSERT INFO:
../src/gtk/tbargtk.cpp(404): assert "bitmap.Ok()" failed in DoInsertTool(): invalid bitmap for wxToolBar icon
BACKTRACE:
[1] wxToolBar::DoInsertTool(unsigned int, wxToolBarToolBase*)
[2] wxToolBarBase::InsertTool(unsigned int, wxToolBarToolBase*)
[3] wxToolBarBase::InsertTool(unsigned int, int, wxString const&, wxBitmap const&, wxBitmap const&, wxItemKind, wxString const&, wxString const&, wxObject*)
[4] wxToolBarBase::DoAddTool(int, wxString const&, wxBitmap const&, wxBitmap const&, wxItemKind, wxString const&, wxString const&, wxObject*, int, int)
[5] wxToolBarBase::AddTool(int, wxString const&, wxBitmap const&, wxBitmap const&, wxItemKind, wxString const&, wxString const&, wxObject*) /usr/include/wx-2.8/wx/tbarbase.h:261
[6] wxToolBarBase::AddTool(int, wxString const&, wxBitmap const&, wxString const&, wxItemKind) /usr/include/wx-2.8/wx/tbarbase.h:270
[7] Frame::CreateToolbars24() /home/cenix/Programming/codelite/codelite/LiteEditor/frame.cpp:849
[8] Frame::CreateGUIControls() /home/cenix/Programming/codelite/codelite/LiteEditor/frame.cpp:681
[9] Frame() /home/cenix/Programming/codelite/codelite/LiteEditor/frame.cpp:439
[10] Frame::Initialize(bool) /home/cenix/Programming/codelite/codelite/LiteEditor/frame.cpp:508
[11] App::OnInit() /home/cenix/Programming/codelite/codelite/LiteEditor/app.cpp:312
If I replace the call to point to another existing bitmap wxXmlResource::Get()->LoadBitmap(wxT("<bitmap id>")) all goes fine.
This implies that my bitmap is not correct, however when I make a copy of an existing bitmap and use that one, it also fails(!).
I must be forgetting something (or else don't see correctly what is going wrong).
How to proceed?