From 8776f832798da9d7dd5482a1bacf7af15082ccc2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 12 Jan 2012 23:26:15 +1100 Subject: Fix extra carets in wrapped text under DirectWrite. Bug #3471998. --- src/Editor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 87a12ef8a..35a21c36c 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2517,7 +2517,7 @@ void DrawTextBlob(Surface *surface, ViewStyle &vsDraw, PRectangle rcSegment, } void Editor::DrawEOL(Surface *surface, ViewStyle &vsDraw, PRectangle rcLine, LineLayout *ll, - int line, int lineEnd, int xStart, int subLine, int subLineStart, + int line, int lineEnd, int xStart, int subLine, XYACCUMULATOR subLineStart, bool overrideBackground, ColourDesired background, bool drawWrapMarkEnd, ColourDesired wrapColour) { @@ -2847,7 +2847,7 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis int posLineStart = pdoc->LineStart(line); int startseg = ll->LineStart(subLine); - int subLineStart = ll->positions[startseg]; + XYACCUMULATOR subLineStart = ll->positions[startseg]; if (subLine >= ll->lines) { DrawAnnotation(surface, vsDraw, line, xStart, rcLine, ll, subLine); return; // No further drawing -- cgit v1.2.3