- // width to ensure that they all align horizontally.
- size_t firstRowLine = i - currentlyVisibleLines + 1;
- for (size_t j = firstRowLine; j <= i; j++)
+ // width to ensure that they all align horizontally in
+ // icon view.
+ if ( HasFlag(wxLC_ICON) || HasFlag(wxLC_SMALL_ICON) )