fix to avoid internal compiler error with gcc 2.95.2 on Alpha
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
735d1db6cb
commit
c5b7bb59ec
@ -1879,7 +1879,7 @@ void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
||||
|
||||
int numColumns = m_owner->GetColumnCount();
|
||||
wxListItem item;
|
||||
for (int i = 0; i < numColumns; i++)
|
||||
for ( int i = 0; i < numColumns && x < w; i++ )
|
||||
{
|
||||
m_owner->GetColumn( i, item );
|
||||
int wCol = item.m_width;
|
||||
@ -1923,11 +1923,9 @@ void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
||||
dc.DrawText( item.GetText(),
|
||||
x + EXTRA_WIDTH, HEADER_OFFSET_Y + EXTRA_HEIGHT );
|
||||
|
||||
if ( x > w - wCol + 5 )
|
||||
break;
|
||||
|
||||
x += wCol;
|
||||
}
|
||||
|
||||
dc.EndDrawing();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user