mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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)
|
||||
{
|
||||
if (left)
|
||||
pi_.pain.line(dotted_line_thickness_, yo_ - row_.ascent(),
|
||||
dotted_line_thickness_, yo_ + row_.descent(),
|
||||
Color_scroll,
|
||||
Painter::line_onoffdash, dotted_line_thickness_);
|
||||
pi_.pain.line(int(dotted_line_thickness_), yo_ - row_.ascent(),
|
||||
int(dotted_line_thickness_), yo_ + row_.descent(),
|
||||
Color_scroll,
|
||||
Painter::line_onoffdash, dotted_line_thickness_);
|
||||
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(),
|
||||
wwidth, yo_ + row_.descent(),
|
||||
Color_scroll,
|
||||
Painter::line_onoffdash, dotted_line_thickness_);
|
||||
wwidth, yo_ + row_.descent(),
|
||||
Color_scroll,
|
||||
Painter::line_onoffdash, dotted_line_thickness_);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user