]> 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 07d4b25a753f47807f91dfcf77db9c9f4426d5c8..7842693db506c9245019640f8ec56e6947f44833 100644 (file)
@@ -289,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