From: Guillaume Munch Date: Sat, 4 Mar 2017 22:44:53 +0000 (+0100) Subject: Fix warning X-Git-Tag: 2.3.0alpha1~278 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=76f3f6eb01ca28e3c7d6c9445f48243e8e05ff11;p=features.git Fix warning --- diff --git a/src/Row.cpp b/src/Row.cpp index cc78cff339..d6ea7275ba 100644 --- a/src/Row.cpp +++ b/src/Row.cpp @@ -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) {