aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LineMarker.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-26 16:36:29 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-26 16:36:29 +1100
commit7a3c73483c17da8f669fe3551ad274a02144486a (patch)
tree07402a7e1d2a83c0a1c44f843aba41615623c2c1 /src/LineMarker.cxx
parentf96ffc423d8af568c0f1dc066a4adbec54d49bdb (diff)
downloadscintilla-mirror-7a3c73483c17da8f669fe3551ad274a02144486a.tar.gz
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.
Diffstat (limited to 'src/LineMarker.cxx')
-rw-r--r--src/LineMarker.cxx2
1 files changed, 1 insertions, 1 deletions
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;