/trunk/Scribus/scribus/text/textlayout.cpp |
---|
103,13 → 103,21 |
if (boxes.isEmpty()) |
return; |
GroupBox* column = dynamic_cast<GroupBox*>(boxes.last()); |
int columnIndex = boxes.size() - 1; |
while (columnIndex >= 0) |
{ |
GroupBox* column = dynamic_cast<GroupBox*>(boxes[columnIndex]); |
assert(column); |
int lineCount = column->boxes().count(); |
if (lineCount > 0) |
{ |
column->removeBox(lineCount - 1); |
break; |
} |
--columnIndex; |
} |
} |
void TextLayout::render(ScreenPainter *p, ITextContext *ctx) const |
{ |