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;
case INSET:
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
// the closest side.
if (x > boundary) {