X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2d49353d4ac77775d5c513e55940175458faa1c..3285ee538be44537a0d4e43252db18f5e7362782:/contrib/src/gizmos/statpict.cpp diff --git a/contrib/src/gizmos/statpict.cpp b/contrib/src/gizmos/statpict.cpp index 5f6ce086de..62a51d123b 100644 --- a/contrib/src/gizmos/statpict.cpp +++ b/contrib/src/gizmos/statpict.cpp @@ -19,10 +19,9 @@ #include "wx/gizmos/statpict.h" #include "wx/dcclient.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxStaticPicture, wxControl) -#endif - +WXDLLIMPEXP_GIZMOS const wxChar * wxStaticPictureNameStr = wxT("staticPicture"); + /* * wxStaticPicture */ @@ -43,9 +42,9 @@ bool wxStaticPicture::Create(wxWindow *parent, wxWindowID id, wxSize size = s ; if ( bitmap.Ok() ) { - if ( size.x == wxDefaultSize.x ) + if ( size.x == wxDefaultCoord ) size.x = bitmap.GetWidth() ; - if ( size.y == wxDefaultSize.y ) + if ( size.y == wxDefaultCoord ) size.y = bitmap.GetHeight() ; } @@ -154,5 +153,3 @@ void wxStaticPicture::OnPaint(wxPaintEvent& WXUNUSED(event)) dc.EndDrawing(); } -//WXDLLEXPORT_DATA(const wxChar *) wxStaticPictureNameStr = wxT("message"); -const wxChar * wxStaticPictureNameStr = wxT("message");