int yo, int xo)
{
// only if there is a selection
- if (!text->selection.set()) return;
+ if (!text->selection.set())
+ return;
int const bottom = min(
- max(static_cast<int>(text->selection.end.y()
+ max(int(text->selection.end.y()
- text->getRow(text->selection.end)->baseline()
+ text->getRow(text->selection.end)->height()),
text->top_y()),
- static_cast<int>(text->top_y() + workarea().workHeight()));
+ int(text->top_y() + workarea().workHeight()));
int const top = min(
- max(static_cast<int>(text->selection.start.y() -
+ max(int(text->selection.start.y() -
text->getRow(text->selection.start)->baseline()),
text->top_y()),
- static_cast<int>(text->top_y() + workarea().workHeight()));
+ int(text->top_y() + workarea().workHeight()));
if (kill_selection)
text->selection.set(false);
workarea().getPainter().start();
- drawFromTo(text, bv, top - text->top_y(), bottom - text->top_y(),
- yo, xo);
- expose(0, top - text->top_y(),
- workarea().workWidth(),
- bottom - text->top_y() - (top - text->top_y()));
+ drawFromTo(text, bv, top - text->top_y(), bottom - text->top_y(), yo, xo);
+ expose(0, top - text->top_y(), workarea().workWidth(), bottom - top);
workarea().getPainter().end();
}
chunkwidth += thiswidth;
InsetOld * in = pit->isInset(i) ? pit->getInset(i) : 0;
- fullrow = (in && (in->display() || in->needFullRow()));
+ fullrow = in && (in->display() || in->needFullRow());
// break before a character that will fall off
// the right of the row
font = getFont(pit, i);
endPosOfFontSpan = pit->getEndPosOfFontSpan(i);
}
- if (! font.language()->RightToLeft()) {
+ if (!font.language()->RightToLeft()) {
w += font_metrics::width(c, font);
} else {
// Fall-back to the normal case