mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-04 08:37:52 +00:00
Fix two warnings about conversion from double to int.
This commit is contained in:
parent
d4428ceb81
commit
6e519e7727
@ -442,16 +442,16 @@ int RowPainter::paintAppendixStart(int y)
|
|||||||
void RowPainter::paintTooLargeMarks(bool const left, bool const right)
|
void RowPainter::paintTooLargeMarks(bool const left, bool const right)
|
||||||
{
|
{
|
||||||
if (left)
|
if (left)
|
||||||
pi_.pain.line(dotted_line_thickness_, yo_ - row_.ascent(),
|
pi_.pain.line(int(dotted_line_thickness_), yo_ - row_.ascent(),
|
||||||
dotted_line_thickness_, yo_ + row_.descent(),
|
int(dotted_line_thickness_), yo_ + row_.descent(),
|
||||||
Color_scroll,
|
Color_scroll,
|
||||||
Painter::line_onoffdash, dotted_line_thickness_);
|
Painter::line_onoffdash, dotted_line_thickness_);
|
||||||
if (right) {
|
if (right) {
|
||||||
int const wwidth = pi_.base.bv->workWidth() - dotted_line_thickness_;
|
int const wwidth = pi_.base.bv->workWidth() - int(dotted_line_thickness_);
|
||||||
pi_.pain.line(wwidth, yo_ - row_.ascent(),
|
pi_.pain.line(wwidth, yo_ - row_.ascent(),
|
||||||
wwidth, yo_ + row_.descent(),
|
wwidth, yo_ + row_.descent(),
|
||||||
Color_scroll,
|
Color_scroll,
|
||||||
Painter::line_onoffdash, dotted_line_thickness_);
|
Painter::line_onoffdash, dotted_line_thickness_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user