X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be01a40397e2cadfa1f2bc047e5f52c7123825f5..fe1efe6ab784b0f364e7e949ac0afb4bbc3215d2:/src/mac/carbon/metafile.cpp diff --git a/src/mac/carbon/metafile.cpp b/src/mac/carbon/metafile.cpp index 1e8a5e6dd1..3c211cad89 100644 --- a/src/mac/carbon/metafile.cpp +++ b/src/mac/carbon/metafile.cpp @@ -25,6 +25,7 @@ #include "wx/metafile.h" #include "wx/clipbrd.h" #include "wx/mac/private.h" +#include "wx/graphics.h" #include #include @@ -34,7 +35,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxMetafileDC, wxDC) class wxMetafileRefData: public wxGDIRefData { - friend class WXDLLEXPORT wxMetafile; + friend class wxMetafile; public: wxMetafileRefData(); @@ -214,7 +215,7 @@ wxMetaFileDC::wxMetaFileDC( int width, int height, const wxString& WXUNUSED(description) ) { - wxASSERT_MSG( width <= 0 || height <= 0, wxT("no arbitration of metafile size supported") ); + wxASSERT_MSG( width != 0 || height != 0, wxT("no arbitration of metafile size supported") ); wxASSERT_MSG( filename.empty(), wxT("no file based metafile support yet")); m_metaFile = new wxMetaFile( filename );