Changed m_font to * GetFont() since m_font isn't in all implementations.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -705,7 +705,7 @@ void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
|||||||
|
|
||||||
dc.BeginDrawing();
|
dc.BeginDrawing();
|
||||||
|
|
||||||
dc.SetFont( m_font );
|
dc.SetFont( *GetFont() );
|
||||||
|
|
||||||
int w = 0;
|
int w = 0;
|
||||||
int h = 0;
|
int h = 0;
|
||||||
@@ -1020,7 +1020,7 @@ void wxListMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
|||||||
|
|
||||||
dc.BeginDrawing();
|
dc.BeginDrawing();
|
||||||
|
|
||||||
dc.SetFont( m_font );
|
dc.SetFont( *GetFont() );
|
||||||
|
|
||||||
wxNode *node = m_lines.First();
|
wxNode *node = m_lines.First();
|
||||||
while (node)
|
while (node)
|
||||||
@@ -1845,7 +1845,7 @@ long wxListMainWindow::GetMode( void ) const
|
|||||||
void wxListMainWindow::CalculatePositions( void )
|
void wxListMainWindow::CalculatePositions( void )
|
||||||
{
|
{
|
||||||
wxPaintDC dc( this );
|
wxPaintDC dc( this );
|
||||||
dc.SetFont( m_font );
|
dc.SetFont( *GetFont() );
|
||||||
|
|
||||||
int iconSpacing = 0;
|
int iconSpacing = 0;
|
||||||
if (m_mode & wxLC_ICON) iconSpacing = m_normal_spacing;
|
if (m_mode & wxLC_ICON) iconSpacing = m_normal_spacing;
|
||||||
|
Reference in New Issue
Block a user