]> git.saurik.com Git - wxWidgets.git/commitdiff
Changed m_font to * GetFont() since m_font isn't in all implementations.
authorJulian Smart <julian@anthemion.co.uk>
Wed, 4 Nov 1998 13:07:46 +0000 (13:07 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 4 Nov 1998 13:07:46 +0000 (13:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 448f068c3fb29d2a678154120e79a40cece94ac4..e9b724c66663539103f05fbf52b0617d5c309d65 100644 (file)
@@ -705,7 +705,7 @@ void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
   
   dc.BeginDrawing();
      
-  dc.SetFont( m_font );
+  dc.SetFont( *GetFont() );
 
   int w = 0;
   int h = 0;
@@ -1020,7 +1020,7 @@ void wxListMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
   
   dc.BeginDrawing();
 
-  dc.SetFont( m_font );
+  dc.SetFont( *GetFont() );
 
   wxNode *node = m_lines.First();
   while (node) 
@@ -1845,7 +1845,7 @@ long wxListMainWindow::GetMode( void ) const
 void wxListMainWindow::CalculatePositions( void )
 {
   wxPaintDC dc( this );
-  dc.SetFont( m_font );
+  dc.SetFont( *GetFont() );
 
   int iconSpacing = 0;
   if (m_mode & wxLC_ICON) iconSpacing = m_normal_spacing;