]> git.lyx.org Git - features.git/commitdiff
Fix MSVC warning
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 17 Mar 2019 13:28:22 +0000 (14:28 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 17 Mar 2019 13:28:22 +0000 (14:28 +0100)
src/RowPainter.cpp

index a060874aab7cf7ba2ed1120a5f5805c56dd3dc65..718b1a9aeaea435a9b4c6ceac2e3ca7d3c30cd63 100644 (file)
@@ -432,7 +432,7 @@ void RowPainter::paintLabel() const
        int const x = row_.isRTL() ? row_.width() + fm.width(layout.labelsep)
                                   : row_.left_margin - fm.width(layout.labelsep) - fm.width(str);
 
-       pi_.pain.text(xo_ + x, yo_, str, font);
+       pi_.pain.text(int(xo_) + x, yo_, str, font);
 }