SynEdit: fix for redrawing fold gutter (offset after end-node would sometimes be ignored)

git-svn-id: trunk@18049 -
This commit is contained in:
martin 2009-01-02 14:49:58 +00:00
parent 8928a1a17b
commit fbcdd456e7

View File

@ -147,6 +147,8 @@ begin
if not Visible then exit;
LineHeight := TSynEdit(FEdit).LineHeight;
LineOffset := 0;
if (iLine > 0) and (FFoldView.FoldType[iLine-1] = cfEnd) then
LineOffset := 2;
BoxSize := Min(Width, LineHeight - cNodeOffset*2);
if MarkupInfoCodeFoldingTree.Background <> clNone then