* TabControlPainter.cs: Use TabControl.Font to draw instead of
TabPage.Font values.
Fixes bits of #551032.
svn path=/trunk/mcs/; revision=159546
+2010-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * TabControlPainter.cs: Use TabControl.Font to draw instead of
+ TabPage.Font values.
+ Fixes bits of #551032.
+
2010-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TabControlPainter.cs: When drawing the contents of our tabs use
text_area.Width -= image_occupied_space;
}
if (page.Text != null)
- dc.DrawString (page.Text, page.Font, SystemBrushes.ControlText, text_area, DefaultFormatting);
+ dc.DrawString (page.Text, tab.Font, SystemBrushes.ControlText, text_area, DefaultFormatting);
if (tab.Focused && is_selected && tab.ShowFocusCues)
ControlPaint.DrawFocusRectangle (dc, bounds);
return 0;