]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/richedit/wxllist.cpp
Bug related to icon/bitmap conversion, fix by Mumit Khan
[wxWidgets.git] / samples / richedit / wxllist.cpp
index 2aafe648eb640597ab16bdd07ba1de3137b5c9e9..3a8e75082ea28c9736d4980017b66204dab8ea1a 100644 (file)
@@ -449,7 +449,11 @@ wxLayoutObjectIcon::wxLayoutObjectIcon(wxBitmap *icon)
 {
    m_Icon = icon;
    if(! m_Icon)
+#if wxICON_IS_BITMAP
       m_Icon = new wxIcon;
+#else
+      m_Icon = new wxBitmap;
+#endif
 }
 
 void