From 7a3c73483c17da8f669fe3551ad274a02144486a Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 26 Mar 2021 16:36:29 +1100 Subject: Bug [#2224]. Switch XYPOSITION to double so it has more precision to fix problems with very long documents. Fixes uneven line heights on Cocoa after around 1.1 million lines. --- src/LineMarker.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/LineMarker.cxx') diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index 13d8b05ae..5acfb7cb3 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -147,7 +147,7 @@ void DrawTail(Surface *surface, XYPOSITION leftLine, XYPOSITION rightTail, XYPOS void LineMarker::DrawFoldingMark(Surface *surface, const PRectangle &rcWhole, FoldPart part) const { // Assume: edges of rcWhole are integers. // Code can only really handle integer strokeWidth. - constexpr float strokeWidth = 1.0f; + constexpr XYPOSITION strokeWidth = 1.0f; ColourDesired colourHead = back; ColourDesired colourBody = back; -- cgit v1.2.3