X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/371ee4026efaed733fb2d65cda10aa72745b4f9f..15248e43a93d885f3202554202f529bd1b1e10a4:/samples/richedit/wxLayout.cpp 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);