From 8ebe86f15bd3de9a87c1ce3bb3f150bb197e1ea8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 21 Apr 2012 10:10:41 +1000 Subject: Ensure annotation box is drawn using base style. Bug #3519872. --- 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 a2ccea2a4..c75734cae 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2757,7 +2757,6 @@ void Editor::DrawAnnotation(Surface *surface, ViewStyle &vsDraw, int line, int x widthAnnotation += vsDraw.spaceWidth * 2; // Margins rcSegment.left = xStart + indent; rcSegment.right = rcSegment.left + widthAnnotation; - surface->PenColour(vsDraw.styles[vsDraw.annotationStyleOffset].fore); } else { rcSegment.left = xStart; } @@ -2779,6 +2778,7 @@ void Editor::DrawAnnotation(Surface *surface, ViewStyle &vsDraw, int line, int x DrawStyledText(surface, vsDraw, vsDraw.annotationStyleOffset, rcText, rcText.top + vsDraw.maxAscent, stAnnotation, start, lengthAnnotation); if (vs.annotationVisible == ANNOTATION_BOXED) { + surface->PenColour(vsDraw.styles[vsDraw.annotationStyleOffset].fore); surface->MoveTo(rcSegment.left, rcSegment.top); surface->LineTo(rcSegment.left, rcSegment.bottom); surface->MoveTo(rcSegment.right, rcSegment.top); -- cgit v1.2.3