]> git.saurik.com Git - wxWidgets.git/commitdiff
Need to update the bg brush when the first page is added.
authorJamie Gadd <jrgadd2@cs.latrobe.edu.au>
Thu, 5 Oct 2006 21:34:54 +0000 (21:34 +0000)
committerJamie Gadd <jrgadd2@cs.latrobe.edu.au>
Thu, 5 Oct 2006 21:34:54 +0000 (21:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/notebook.cpp

index 571f6506fc883510cc6315058c40f64a69e95057..cd19ed2b0d0e419e9282cab664a5899257498d8a 100644 (file)
@@ -761,6 +761,13 @@ bool wxNotebook::InsertPage(size_t nPage,
         return false;
     }
 
+    // need to update the bg brush when the first page is added
+    // so the first panel gets the correct themed background
+    if ( m_pages.empty() )
+    {
+        UpdateBgBrush();
+    }
+
     // succeeded: save the pointer to the page
     m_pages.Insert(pPage, nPage);