]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/statusbr.cpp
fixed TLWs resizing to invalidate the DFB surface used for painting
[wxWidgets.git] / src / univ / statusbr.cpp
index 3c4e447a3b83455a9e37acfb5efe4d3bf4dc0c9e..7842693db506c9245019640f8ec56e6947f44833 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/settings.h"
     #include "wx/dcclient.h"
+    #include "wx/toplevel.h"
 #endif
 
-#include "wx/toplevel.h"
-
 #include "wx/univ/renderer.h"
 
 // ============================================================================
@@ -290,10 +289,7 @@ wxRect wxStatusBarUniv::DoGetFieldRect(int n) const
 
 wxCoord wxStatusBarUniv::GetHeight() const
 {
-    wxClientDC dc(wxConstCast(this, wxStatusBarUniv));
-    dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
-
-    return dc.GetCharHeight() + 2*GetBorderY();
+    return GetCharHeight() + 2*GetBorderY();
 }
 
 wxSize wxStatusBarUniv::DoGetBestSize() const