X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c89f5c02b1ecc6098b21b39b01509dd387c1cb34..277f2e527e33de039146ab94358ffec9c98f6112:/include/wx/gtk1/pen.h diff --git a/include/wx/gtk1/pen.h b/include/wx/gtk1/pen.h index cf1464fdb1..9f9fe6e9c5 100644 --- a/include/wx/gtk1/pen.h +++ b/include/wx/gtk1/pen.h @@ -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; }