fix bad typo in the code: wxIMAGE_OPTION_RESOLUTION option was used where wxIMAGE_OPTION_RESOLUTIONUNIT was meant (reviewing documentation is useful for finding bugs too...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -182,7 +182,7 @@ bool wxBMPHandler::SaveDib(wxImage *image,
|
|||||||
// for the BMP format if not specified
|
// for the BMP format if not specified
|
||||||
wxUint32 hres = image->GetOptionInt(wxIMAGE_OPTION_RESOLUTIONX),
|
wxUint32 hres = image->GetOptionInt(wxIMAGE_OPTION_RESOLUTIONX),
|
||||||
vres = image->GetOptionInt(wxIMAGE_OPTION_RESOLUTIONY);
|
vres = image->GetOptionInt(wxIMAGE_OPTION_RESOLUTIONY);
|
||||||
switch ( image->GetOptionInt(wxIMAGE_OPTION_RESOLUTION) )
|
switch ( image->GetOptionInt(wxIMAGE_OPTION_RESOLUTIONUNIT) )
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
wxFAIL_MSG( _T("unexpected image resolution units") );
|
wxFAIL_MSG( _T("unexpected image resolution units") );
|
||||||
|
Reference in New Issue
Block a user