X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c89f5c02b1ecc6098b21b39b01509dd387c1cb34..ef094fa075bc56bcbc33b12159c395ea28afda3b:/include/wx/gtk1/pen.h?ds=inline 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; }