X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c89f5c02b1ecc6098b21b39b01509dd387c1cb34..69429a166f8b168228bbb89eb8c52903670f4fd2:/include/wx/gtk1/pen.h diff --git a/include/wx/gtk1/pen.h b/include/wx/gtk1/pen.h index cf1464fdb1..3ee44368e2 100644 --- a/include/wx/gtk1/pen.h +++ b/include/wx/gtk1/pen.h @@ -11,7 +11,7 @@ #ifndef __GTKPENH__ #define __GTKPENH__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface #endif @@ -45,7 +45,9 @@ public: wxPen( const wxColour &colour, int width, int style ); ~wxPen(); - wxPen( const wxPen& pen ) { Ref(pen); } + wxPen( const wxPen& pen ) + : wxGDIObject() + { Ref(pen); } wxPen& operator = ( const wxPen& pen ) { Ref(pen); return *this; } bool Ok() const { return m_refData != NULL; }