From: Vadim Zeitlin Date: Sun, 27 Feb 2005 15:58:34 +0000 (+0000) Subject: refersh after changing the image (patch 1151163) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cc893cea58eb3225adf953b74fad0cdf23e8d7aa?ds=inline refersh after changing the image (patch 1151163) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/artprov/artbrows.cpp b/samples/artprov/artbrows.cpp index 2543ca97af..fbeff12791 100644 --- a/samples/artprov/artbrows.cpp +++ b/samples/artprov/artbrows.cpp @@ -183,10 +183,12 @@ void wxArtBrowserDialog::SetArtClient(const wxArtClient& client) void wxArtBrowserDialog::OnSelectItem(wxListEvent &event) { + const wxChar *data = (const wxChar*)event.GetData(); wxBitmap bmp = wxArtProvider::GetBitmap(data, m_client); - m_canvas->SetBitmap(bmp); m_canvas->SetSize(bmp.GetWidth(), bmp.GetHeight()); + m_canvas->SetBitmap(bmp); + Refresh(); } void wxArtBrowserDialog::OnChooseClient(wxCommandEvent &event)