From 77bf4cefcdfadaf54d2a6d004f03f23c88351fce Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 3 Aug 2003 22:53:55 +0000 Subject: [PATCH] initialize the image list size in default ctor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/imaglist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/generic/imaglist.h b/include/wx/generic/imaglist.h index 288c7444b4..b11f936160 100644 --- a/include/wx/generic/imaglist.h +++ b/include/wx/generic/imaglist.h @@ -56,7 +56,7 @@ enum { class WXDLLEXPORT wxGenericImageList: public wxObject { public: - wxGenericImageList() { } + wxGenericImageList() { m_width = m_height = 0; } wxGenericImageList( int width, int height, bool mask = TRUE, int initialCount = 1 ); ~wxGenericImageList(); bool Create( int width, int height, bool mask = TRUE, int initialCount = 1 );