]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/imaglist.cpp
fix for a crash due to using NULL inputConv in Unicode build introduced in rev 1.162
[wxWidgets.git] / src / generic / imaglist.cpp
index 51b6970d5ffbbc71f7ed23c3ae195cff4f6bc032..0e3d1c01bd154d970d75175409411ece570b89e8 100644 (file)
@@ -7,13 +7,11 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "imaglist.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#if wxUSE_IMAGLIST
+
 #ifdef __BORLANDC__
 #pragma hdrstop
 #endif
@@ -226,4 +224,5 @@ bool wxGenericImageList::Draw( int index, wxDC &dc, int x, int y,
     return true;
 }
 
+#endif // wxUSE_IMAGLIST
 #endif // __WXPALMOS__