]> git.lyx.org Git - lyx.git/blobdiff - src/RowPainter.cpp
FindAdv: Added remaining accents(2) dgrave, textdoublegrave, rcap, textroundcap
[lyx.git] / src / RowPainter.cpp
index 9534b207d0b04322ead1e925a497221feac927e3..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);
 }
 
 
@@ -553,9 +553,9 @@ void RowPainter::paintLast() const
                }
 
                if (endlabel == END_LABEL_BOX)
-                       pi_.pain.rectangle(xo_ + x, y, size, size, font.realColor());
+                       pi_.pain.rectangle(int(xo_) + x, y, size, size, font.realColor());
                else
-                       pi_.pain.fillRectangle(xo_ + x, y, size, size, font.realColor());
+                       pi_.pain.fillRectangle(int(xo_) + x, y, size, size, font.realColor());
                break;
        }