From 74b28d5cc8649be692d635a91f99863fb287a5c4 Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Garcia Date: Sat, 15 Jan 2000 21:45:30 +0000 Subject: [PATCH] Bug related to icon/bitmap conversion, fix by Mumit Khan git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/richedit/wxLayout.cpp | 4 ++++ samples/richedit/wxllist.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/samples/richedit/wxLayout.cpp b/samples/richedit/wxLayout.cpp index d650aea0ae..7ba8765da9 100644 --- a/samples/richedit/wxLayout.cpp +++ b/samples/richedit/wxLayout.cpp @@ -171,7 +171,11 @@ MyFrame::AddSampleText(wxLayoutList *llist) llist->Insert("The quick brown fox jumps over the lazy dog."); llist->LineBreak(); llist->Insert("Hello "); +#if wxICON_IS_BITMAP llist->Insert(new wxLayoutObjectIcon(new wxICON(Micon))); +#else + llist->Insert(new wxLayoutObjectIcon(new wxBitmap (wxICON(Micon)))); +#endif llist->SetFontWeight(wxBOLD); llist->Insert("World! "); llist->SetFontWeight(wxNORMAL); diff --git a/samples/richedit/wxllist.cpp b/samples/richedit/wxllist.cpp index 2aafe648eb..3a8e75082e 100644 --- a/samples/richedit/wxllist.cpp +++ b/samples/richedit/wxllist.cpp @@ -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 -- 2.47.2