]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/buttonbar.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / generic / buttonbar.cpp
index cf9e0ba75b74d6721e740f24d506dc8e8b05b1bd..82d43dc554806963208821fee3c18c58799c2b02 100644 (file)
@@ -140,7 +140,10 @@ bool wxButtonToolBar::Create(wxWindow *parent,
 
     // wxColour lightBackground(244, 244, 244);
 
-    wxFont font(wxSMALL_FONT->GetPointSize(), wxNORMAL_FONT->GetFamily(), wxNORMAL_FONT->GetStyle(), wxNORMAL);
+    wxFont font(wxSMALL_FONT->GetPointSize(),
+                wxNORMAL_FONT->GetFamily(),
+                wxNORMAL_FONT->GetStyle(),
+                wxFONTWEIGHT_NORMAL);
     SetFont(font);
 
     // Calculate the label height if necessary