aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-04-21 10:10:41 +1000
committernyamatongwe <unknown>2012-04-21 10:10:41 +1000
commit287aa74c80e1d55bd84922f02c013ca3cacfec7e (patch)
tree3514f84343126c3a01d473d1c3ffa6680823aa3b /src
parent5b98622a876dab948b62b4c5b0729d4498f7fe79 (diff)
downloadscintilla-mirror-287aa74c80e1d55bd84922f02c013ca3cacfec7e.tar.gz
Ensure annotation box is drawn using base style. Bug #3519872.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
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);