X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0199503bf0629b65c4431dea8fd03823c692a007..0966aee3d9eac832fe7dcf66db2eb06e76c51da5:/contrib/src/gizmos/statpict.cpp diff --git a/contrib/src/gizmos/statpict.cpp b/contrib/src/gizmos/statpict.cpp index 1886d3c54e..42f38b202b 100644 --- a/contrib/src/gizmos/statpict.cpp +++ b/contrib/src/gizmos/statpict.cpp @@ -43,9 +43,9 @@ bool wxStaticPicture::Create(wxWindow *parent, wxWindowID id, wxSize size = s ; if ( bitmap.Ok() ) { - if ( size.x == -1 ) + if ( size.x == wxDefaultCoord ) size.x = bitmap.GetWidth() ; - if ( size.y == -1 ) + if ( size.y == wxDefaultCoord ) size.y = bitmap.GetHeight() ; } @@ -63,7 +63,7 @@ bool wxStaticPicture::Create(wxWindow *parent, wxWindowID id, OriginalImage = Bitmap.ConvertToImage(); #endif - if ( id == -1 ) + if ( id == wxID_ANY ) m_windowId = (int)NewControlId(); else m_windowId = id;