int counter = 0;
int step = (s_width - xpos);
if (step < 0) step = 0;
- while (line != cell) {
+ xcnt--;
+ if (xcnt > 0) while (line != cell) {
line -> SetPos(line -> GetPosX() + s_indent +
(counter++ * step / xcnt),
ypos + line -> GetPosY());
line = line -> GetNext();
}
+ xcnt++;
}
ypos += ysizedown;