From 5a64182017a5b0fc8216349e834c59790b216576 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 21 Jan 2010 12:57:34 +0000 Subject: Fix for bug #2936108 SC_WRAPVISUALFLAGLOC_END_BY_TEXT has not worked since 2.0. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index da37d4781..b57b0c85a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2351,7 +2351,7 @@ void Editor::DrawEOL(Surface *surface, ViewStyle &vsDraw, PRectangle rcLine, Lin PRectangle rcPlace = rcSegment; if (wrapVisualFlagsLocation & SC_WRAPVISUALFLAGLOC_END_BY_TEXT) { - rcPlace.left = ll->positions[ll->numCharsInLine] + xStart + virtualSpace; + rcPlace.left = xEol + xStart + virtualSpace; rcPlace.right = rcPlace.left + vsDraw.aveCharWidth; } else { // draw left of the right text margin, to avoid clipping by the current clip rect -- cgit v1.2.3