const added to GetBitmap it was my fault.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -59,7 +59,7 @@ class wxImageList: public wxObject
|
|||||||
bool Create();
|
bool Create();
|
||||||
int GetImageCount() const;
|
int GetImageCount() const;
|
||||||
int Add( const wxBitmap &bitmap );
|
int Add( const wxBitmap &bitmap );
|
||||||
wxBitmap *GetBitmap(int index);
|
const wxBitmap *GetBitmap(int index) const;
|
||||||
bool Replace( int index, const wxBitmap &bitmap );
|
bool Replace( int index, const wxBitmap &bitmap );
|
||||||
bool Remove( int index );
|
bool Remove( int index );
|
||||||
bool RemoveAll();
|
bool RemoveAll();
|
||||||
|
@@ -48,7 +48,7 @@ int wxImageList::Add( const wxBitmap &bitmap )
|
|||||||
return m_images.Number();
|
return m_images.Number();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxBitmap *wxImageList::GetBitmap(int index) {
|
const wxBitmap *wxImageList::GetBitmap(int index) const {
|
||||||
wxNode *node = m_images.Nth(index);
|
wxNode *node = m_images.Nth(index);
|
||||||
if (node != NULL)
|
if (node != NULL)
|
||||||
return (wxBitmap*)node->Data();
|
return (wxBitmap*)node->Data();
|
||||||
|
Reference in New Issue
Block a user