fixed crashing generic dir dialog.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Harco de Hilster 1999-09-03 10:54:26 +00:00
parent b387781ceb
commit e951f847fa

View File

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