X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c89f5c02b1ecc6098b21b39b01509dd387c1cb34..250b589f71b10fbb1457725897de20ea6d06a1ca:/include/wx/gtk/colour.h diff --git a/include/wx/gtk/colour.h b/include/wx/gtk/colour.h index bce0560ddb..e399d074b2 100644 --- a/include/wx/gtk/colour.h +++ b/include/wx/gtk/colour.h @@ -49,7 +49,9 @@ public: wxColour( const wxString &colourName ) { InitFromName(colourName); } wxColour( const char *colourName ) { InitFromName(colourName); } - wxColour( const wxColour& col ) { Ref(col); } + wxColour( const wxColour& col ) + : wxGDIObject() + { Ref(col); } wxColour& operator = ( const wxColour& col ) { Ref(col); return *this; } ~wxColour();