X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c89f5c02b1ecc6098b21b39b01509dd387c1cb34..aa8e9a36c47673613f080d7578e771fe62261ef1:/include/wx/gtk/pen.h?ds=sidebyside diff --git a/include/wx/gtk/pen.h b/include/wx/gtk/pen.h index cf1464fdb1..9f9fe6e9c5 100644 --- a/include/wx/gtk/pen.h +++ b/include/wx/gtk/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; }