From 971f99b913d6d019623ef88aed28b47971a3d5dd Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 9 May 2009 23:47:34 +0000 Subject: Fixed bug #2789430 SCI_ANNOTATIONSETSTYLE with multi-line annotations shows all text on each line. --- 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 28a0ce60e..d1aba6885 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1503,7 +1503,7 @@ void DrawStyledText(Surface *surface, ViewStyle &vs, int styleOffset, PRectangle } else { int style = st.style + styleOffset; surface->DrawTextNoClip(rcText, vs.styles[style].font, - rcText.top + vs.maxAscent, st.text, st.length, + rcText.top + vs.maxAscent, st.text + start, length, vs.styles[style].fore.allocated, vs.styles[style].back.allocated); } -- cgit v1.2.3