X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f66f6a5b3583b02c34854556eb83e3a808524ce..21d0340384a484e3c8e04280de90c0fb8e261006:/src/propgrid/advprops.cpp?ds=sidebyside diff --git a/src/propgrid/advprops.cpp b/src/propgrid/advprops.cpp index 2d7ab44cf4..4e1592ac4d 100644 --- a/src/propgrid/advprops.cpp +++ b/src/propgrid/advprops.cpp @@ -1827,6 +1827,8 @@ wxImageFileProperty::wxImageFileProperty( const wxString& label, const wxString& m_pImage = NULL; m_pBitmap = NULL; + + LoadImageFromFile(); } wxImageFileProperty::~wxImageFileProperty() @@ -1845,6 +1847,11 @@ void wxImageFileProperty::OnSetValue() wxDELETE(m_pImage); wxDELETE(m_pBitmap); + LoadImageFromFile(); +} + +void wxImageFileProperty::LoadImageFromFile() +{ wxFileName filename = GetFileName(); // Create the image thumbnail