Document changes in wxImageFileProperty

Remove references to the non-public member variables
from documentation.
This commit is contained in:
Artur Wieczorek
2022-04-18 22:16:23 +02:00
parent 7fc2024f0e
commit b06b950574
4 changed files with 18 additions and 8 deletions

View File

@@ -1850,17 +1850,22 @@ void wxImageFileProperty::OnSetValue()
wxFileProperty::OnSetValue();
// Delete old image
m_image = wxNullImage;
m_bitmap = wxNullBitmap;
SetImage(wxNullImage);
LoadImageFromFile();
}
void wxImageFileProperty::SetImage(const wxImage& img)
{
m_image = img;
m_bitmap = wxNullBitmap;
}
void wxImageFileProperty::LoadImageFromFile()
{
wxFileName filename = GetFileName();
// Create the image thumbnail
// Cache the image
if ( filename.FileExists() )
{
m_image.LoadFile(filename.GetFullPath());