]> git.lyx.org Git - lyx.git/commitdiff
Fix Visual C++ warning
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 11 Feb 2019 09:43:59 +0000 (10:43 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 11 Feb 2019 09:54:58 +0000 (10:54 +0100)
(cherry picked from commit 2215f4c2b43f9c282f35984182dcd958c8a27ced)

src/RowPainter.cpp

index 93ac63dce6a6594ba3a5f64d382c4cd5791bf319..f27eae6664fbba4b77b0bdab76c126fdcff49e5b 100644 (file)
@@ -525,9 +525,9 @@ void RowPainter::paintLast() const
                }
 
                if (endlabel == END_LABEL_BOX)
-                       pi_.pain.rectangle(xo_ + x, y, size, size, Color_eolmarker);
+                       pi_.pain.rectangle(int(xo_) + x, y, size, size, Color_eolmarker);
                else
-                       pi_.pain.fillRectangle(xo_ + x, y, size, size, Color_eolmarker);
+                       pi_.pain.fillRectangle(int(xo_) + x, y, size, size, Color_eolmarker);
                break;
        }