From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Sun, 3 Aug 2003 22:53:55 +0000 (+0000)
Subject: initialize the image list size in default ctor
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/77bf4cefcdfadaf54d2a6d004f03f23c88351fce

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
---

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 );