X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4026f044ee28289b2c05e05f2ec7f15f02b9cf76..133506215101bd8cffbf81e6c36944f7d5e2f8db:/src/aui/auibook.cpp diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 34b51274db..9796ad4c73 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -236,12 +236,7 @@ wxAuiDefaultTabArt::~wxAuiDefaultTabArt() wxAuiTabArt* wxAuiDefaultTabArt::Clone() { - wxAuiDefaultTabArt* art = new wxAuiDefaultTabArt; - art->SetNormalFont(m_normal_font); - art->SetSelectedFont(m_selected_font); - art->SetMeasuringFont(m_measuring_font); - - return art; + return new wxAuiDefaultTabArt(*this); } void wxAuiDefaultTabArt::SetFlags(unsigned int flags)