From e951f847fadc141f8c9f2f6bf5c2019a7d30a9ba Mon Sep 17 00:00:00 2001 From: Harco de Hilster Date: Fri, 3 Sep 1999 10:54:26 +0000 Subject: [PATCH] fixed crashing generic dir dialog. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/dirdlgg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/dirdlgg.cpp b/src/generic/dirdlgg.cpp index ecea39fa8f..ab07302a82 100644 --- a/src/generic/dirdlgg.cpp +++ b/src/generic/dirdlgg.cpp @@ -173,8 +173,8 @@ wxDirCtrl::wxDirCtrl(wxWindow *parent, const wxWindowID id, const wxString &WXUN : wxTreeCtrl( parent, id, pos, size, style, wxDefaultValidator, name ) { - #ifdef __WXMSW__ - m_imageListNormal = new wxImageList(16, 16, TRUE); + #ifndef __WXMSW__ + m_imageListNormal = new wxImageList(16, 16, TRUE); m_imageListNormal->Add(wxICON(icon1)); m_imageListNormal->Add(wxICON(icon2)); SetImageList(m_imageListNormal);