]> git.saurik.com Git - wxWidgets.git/commitdiff
Copied fonts in art Clone
authorJulian Smart <julian@anthemion.co.uk>
Thu, 21 Jun 2007 15:16:10 +0000 (15:16 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 21 Jun 2007 15:16:10 +0000 (15:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/auibook.cpp

index 66cbf8481b56af5c66bd496753ad3e3b58f7deec..405ae7bffa15898d18a5c9f909bc79bda67cf757 100644 (file)
@@ -230,7 +230,12 @@ wxAuiDefaultTabArt::~wxAuiDefaultTabArt()
 
 wxAuiTabArt* wxAuiDefaultTabArt::Clone()
 {
-    return static_cast<wxAuiTabArt*>(new wxAuiDefaultTabArt);
+    wxAuiDefaultTabArt* art = new wxAuiDefaultTabArt;
+    art->SetNormalFont(m_normal_font);
+    art->SetSelectedFont(m_selected_font);
+    art->SetMeasuringFont(m_measuring_font);
+
+    return art;
 }
 
 void wxAuiDefaultTabArt::SetFlags(unsigned int flags)