mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix warnings.
This commit is contained in:
parent
a1add5e804
commit
8b57600a1c
@ -383,7 +383,7 @@ void Row::shortenIfNeeded(pos_type const keep, int const w)
|
||||
// We have found a suitable separator. This is the
|
||||
// common case.
|
||||
end_ = last_sep->endpos;
|
||||
dim_.wid = last_width;
|
||||
dim_.wid = int(last_width);
|
||||
elements_.erase(last_sep, end);
|
||||
return;
|
||||
}
|
||||
@ -405,7 +405,7 @@ void Row::shortenIfNeeded(pos_type const keep, int const w)
|
||||
// There is no separator, but several elements (probably
|
||||
// insets) have been added. We can cut at this place.
|
||||
end_ = cit->pos;
|
||||
dim_.wid = wid;
|
||||
dim_.wid = int(wid);
|
||||
elements_.erase(cit, end);
|
||||
return;
|
||||
}
|
||||
|
@ -804,7 +804,7 @@ void TextMetrics::breakRow(Row & row, int const right_margin, pit_type const pit
|
||||
row.clear();
|
||||
// This make get changed in computeRowMetrics depending on RTL
|
||||
row.x = leftMargin(max_width_, pit, pos);
|
||||
row.dimension().wid = row.x;
|
||||
row.dimension().wid = int(row.x);
|
||||
row.right_margin = right_margin;
|
||||
|
||||
if (pos >= end || row.width() > width) {
|
||||
|
Loading…
Reference in New Issue
Block a user