X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bce78bdc4292e6ed1502a3dfda6fc6f88d39a858..780fb83cb0d665baec66e651d58d91f6c0af66b0:/contrib/src/gizmos/statpict.cpp diff --git a/contrib/src/gizmos/statpict.cpp b/contrib/src/gizmos/statpict.cpp index 1f50fc8ce5..42f38b202b 100644 --- a/contrib/src/gizmos/statpict.cpp +++ b/contrib/src/gizmos/statpict.cpp @@ -13,6 +13,7 @@ #pragma implementation "statpict.h" #endif +#include "wx/wxprec.h" #include "wx/defs.h" #include "wx/gizmos/statpict.h" @@ -42,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() ; } @@ -62,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;