copy wxImage options when copying the images (replaces patch 780705)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-08-04 17:48:35 +00:00
parent 67b3c6576e
commit d8692f2b80

View File

@ -219,6 +219,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;
}