]> git.saurik.com Git - wxWidgets.git/commitdiff
initialize the image list size in default ctor
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Aug 2003 22:53:55 +0000 (22:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Aug 2003 22:53:55 +0000 (22:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/imaglist.h

index 288c7444b423ad00d53232b888a2477909df8934..b11f9361605b1d8ca0b6163175ded6c0993b4f19 100644 (file)
@@ -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 );