Fix warning

This commit is contained in:
Guillaume Munch 2017-03-04 23:44:53 +01:00
parent a0ce37147c
commit 76f3f6eb01

View File

@ -113,7 +113,7 @@ pos_type Row::Element::x2pos(int &x, bool const select) const
break; break;
case INSET: case INSET:
case SPACE: { case SPACE: {
int const boundary = select ? (full_width() + 1) / 2 : full_width(); double const boundary = select ? (full_width() + 1) / 2 : full_width();
// those elements contain only one position. Round to // those elements contain only one position. Round to
// the closest side. // the closest side.
if (x > boundary) { if (x > boundary) {