Fix to avoid an assert. It's a bad idea to add 2 to the font weight

if it's already bold.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-01-04 03:54:17 +00:00
parent f9c79f9dd7
commit 03038a1f5b

View File

@@ -3899,7 +3899,7 @@ void wxGrid::Init()
// TODO: something better than this ? // TODO: something better than this ?
// //
m_labelFont = this->GetFont(); m_labelFont = this->GetFont();
m_labelFont.SetWeight( m_labelFont.GetWeight() + 2 ); m_labelFont.SetWeight( wxBOLD );
m_rowLabelHorizAlign = wxALIGN_LEFT; m_rowLabelHorizAlign = wxALIGN_LEFT;
m_rowLabelVertAlign = wxALIGN_CENTRE; m_rowLabelVertAlign = wxALIGN_CENTRE;