]> git.lyx.org Git - features.git/commitdiff
Fix warning
authorGuillaume Munch <gm@lyx.org>
Sat, 4 Mar 2017 22:44:53 +0000 (23:44 +0100)
committerGuillaume Munch <gm@lyx.org>
Sun, 5 Mar 2017 07:45:52 +0000 (08:45 +0100)
src/Row.cpp

index cc78cff3390f8e3579164155f98f90b0174b4d07..d6ea7275ba4174753a3a7a1911d62c2730b19c16 100644 (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) {