diff --git a/docs/changes.txt b/docs/changes.txt index 904cb24bf9..afccb4dc70 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -190,7 +190,8 @@ All: All (GUI): - rare crash in wxFontMapper fixed (Robert Vazan) -- Added wxMenu::FindItemByPosition. +- added wxMenu::FindItemByPosition. +- copy wxImage options when copying the images Generic: diff --git a/src/common/image.cpp b/src/common/image.cpp index bead6bf143..edfe4b622a 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -204,6 +204,11 @@ wxImage wxImage::Copy() const memcpy( data, GetData(), M_IMGDATA->m_width*M_IMGDATA->m_height*3 ); + // also copy the image options + wxImageRefData *imgData = (wxImageRefData *)image.m_refData; + imgData->m_optionNames = M_IMGDATA->m_optionNames; + imgData->m_optionValues = M_IMGDATA->m_optionValues; + return image; }