]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/advprops.cpp
Added wxRichTextTableBlock class to help with table UI operations
[wxWidgets.git] / src / propgrid / advprops.cpp
index 2d7ab44cf469462a90d95a46f0977969a3482b17..4e1592ac4dc5d233199b3e3f78bb8050fc264af4 100644 (file)
@@ -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