From f2f9466cff10eef54bd165bbfb99bbcc707a0cf4 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 3 May 2014 12:53:13 +1000 Subject: Convenience Point constructor from integers as common source of shapes. --- src/LineMarker.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/LineMarker.cxx') diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index 708e6a320..dec359a91 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -380,11 +380,11 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac } else if (markType == SC_MARK_BOOKMARK) { int halfHeight = minDim / 3; Point pts[] = { - Point(rc.left, centreY-halfHeight), - Point(rc.right-3, centreY-halfHeight), - Point(rc.right-3-halfHeight, centreY), - Point(rc.right-3, centreY+halfHeight), - Point(rc.left, centreY+halfHeight), + Point(static_cast(rc.left), centreY-halfHeight), + Point(static_cast(rc.right) - 3, centreY - halfHeight), + Point(static_cast(rc.right) - 3 - halfHeight, centreY), + Point(static_cast(rc.right) - 3, centreY + halfHeight), + Point(static_cast(rc.left), centreY + halfHeight), }; surface->Polygon(pts, ELEMENTS(pts), fore, back); } else { // SC_MARK_FULLRECT -- cgit v1.2.3