X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6239ee05567eac71754f56c2a154222d10b57ff1..850df2d78866c3edcf848103b5dbc7e7fa1ee5fa:/src/mac/carbon/icon.cpp diff --git a/src/mac/carbon/icon.cpp b/src/mac/carbon/icon.cpp index ee61c69a8d..3457355e0c 100644 --- a/src/mac/carbon/icon.cpp +++ b/src/mac/carbon/icon.cpp @@ -61,8 +61,11 @@ wxIcon::wxIcon(WXHICON icon, const wxSize& size) AcquireIconRef( (IconRef) icon ) ; m_refData = new wxIconRefData( icon ) ; - M_ICONDATA->SetWidth( size.x ) ; - M_ICONDATA->SetHeight( size.y ) ; + if ( (size.x != -1) && (size.y != -1) ) + { + M_ICONDATA->SetWidth( size.x ) ; + M_ICONDATA->SetHeight( size.y ) ; + } } wxIcon::~wxIcon()