diff options
author | nyamatongwe <devnull@localhost> | 2012-04-21 10:10:41 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-04-21 10:10:41 +1000 |
commit | 8ebe86f15bd3de9a87c1ce3bb3f150bb197e1ea8 (patch) | |
tree | 327b7b1966d5ea9827c2d6844f542654004318a0 /src | |
parent | 933522463577bbce5aecb6edf73d39e48adc157c (diff) | |
download | scintilla-mirror-8ebe86f15bd3de9a87c1ce3bb3f150bb197e1ea8.tar.gz |
Ensure annotation box is drawn using base style. Bug #3519872.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |