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:
@@ -219,6 +219,11 @@ wxImage wxImage::Copy() const
|
|||||||
|
|
||||||
memcpy( data, GetData(), M_IMGDATA->m_width*M_IMGDATA->m_height*3 );
|
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;
|
return image;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user