diff options
author | Marko Njezic <unknown> | 2011-06-20 13:33:27 +0200 |
---|---|---|
committer | Marko Njezic <unknown> | 2011-06-20 13:33:27 +0200 |
commit | aa198d68b4f938a20aadfb53267fab87f64a7004 (patch) | |
tree | 6d9a1997073423063500f0f9ad51da06566469ca /src/LineMarker.cxx | |
parent | b8c03bfcdda07e63becf660244f977a0e10d8c5b (diff) | |
download | scintilla-mirror-aa198d68b4f938a20aadfb53267fab87f64a7004.tar.gz |
Properly highlight fold markers on sub lines. Bug #3323015.
This complements fold markers highlighting change from revision 3619,
which only fixed part of the problem.
Changes from revision 3620 have been reverted, as they cause line to be drawn
out of bounds and overlap with previously drawn marker above.
They are also no longer needed, with this change.
Diffstat (limited to 'src/LineMarker.cxx')
-rw-r--r-- | src/LineMarker.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index 73410e2cd..747c5ff12 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -77,8 +77,6 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac case LineMarker::head : head = backSelected; tail = backSelected; - if (markType == SC_MARK_VLINE) - body = backSelected; break; case LineMarker::body : head = backSelected; @@ -186,7 +184,7 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac } else if (markType == SC_MARK_VLINE) { surface->PenColour(body.allocated); - surface->MoveTo(centreX, rcWhole.top + blobSize - (rcWhole.bottom - rcWhole.top)/2); + surface->MoveTo(centreX, rcWhole.top); surface->LineTo(centreX, rcWhole.bottom); } else if (markType == SC_MARK_LCORNER) { |