SynEdit: fixed possible highlighter crash, introduced in r 34252

git-svn-id: trunk@34522 -
This commit is contained in:
martin 2011-12-30 23:10:16 +00:00
parent 2f1c965db2
commit ebfc7112a5
2 changed files with 4 additions and 1 deletions

View File

@ -5283,6 +5283,7 @@ begin
fMarkupHighCaret.Highlighter := nil;
fMarkupWordGroup.Highlighter := nil;
FFoldedLinesView.Highlighter := nil;
FTextArea.Highlighter := nil;
{begin} //mh 2000-10-01
if not (csDestroying in ComponentState) then begin
RecalcCharExtent;

View File

@ -164,7 +164,9 @@ end;
procedure TTestSynEdit.SimulatePaintText;
begin
PaintTextLines(Rect(0,0,1000,1000), 0, Lines.Count - 1, 1, 100);
Canvas.ClipRect := Rect(0,0,1000,1000);
Paint;
//PaintTextLines(Rect(0,0,1000,1000), 0, Lines.Count - 1, 1, 100);
end;
{ TTestBase }