git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27469
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// between two cells separated by, e.g. font change, cell which
// is wrong
- const int step = s_width - xpos;
+ int step = s_width - xpos;
if ( step > 0 )
{
// first count the cells which will get extra space
}
}
}
+ else
+ {
+ // this will cause the code to enter "else branch" below:
+ step = 0;
+ }
}
- else // no extra space to distribute
+ // else branch:
+ if ( step <= 0 ) // no extra space to distribute
{
// just set the indent properly
while (line != cell)