mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 08:30:58 +02:00
SynEdit: fixed possible highlighter crash, introduced in r 34252
git-svn-id: trunk@34522 -
This commit is contained in:
parent
2f1c965db2
commit
ebfc7112a5
@ -5283,6 +5283,7 @@ begin
|
|||||||
fMarkupHighCaret.Highlighter := nil;
|
fMarkupHighCaret.Highlighter := nil;
|
||||||
fMarkupWordGroup.Highlighter := nil;
|
fMarkupWordGroup.Highlighter := nil;
|
||||||
FFoldedLinesView.Highlighter := nil;
|
FFoldedLinesView.Highlighter := nil;
|
||||||
|
FTextArea.Highlighter := nil;
|
||||||
{begin} //mh 2000-10-01
|
{begin} //mh 2000-10-01
|
||||||
if not (csDestroying in ComponentState) then begin
|
if not (csDestroying in ComponentState) then begin
|
||||||
RecalcCharExtent;
|
RecalcCharExtent;
|
||||||
|
@ -164,7 +164,9 @@ end;
|
|||||||
|
|
||||||
procedure TTestSynEdit.SimulatePaintText;
|
procedure TTestSynEdit.SimulatePaintText;
|
||||||
begin
|
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;
|
end;
|
||||||
|
|
||||||
{ TTestBase }
|
{ TTestBase }
|
||||||
|
Loading…
Reference in New Issue
Block a user