mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 02:02:19 +02:00
SynEdit:Fix crash in multiline pattern replace (Bug #12714)
git-svn-id: trunk@17590 -
This commit is contained in:
parent
7ed7f3098d
commit
94d0fe9be2
@ -711,7 +711,7 @@ var
|
||||
for i:=MinY to MaxY do
|
||||
inc(NeededLen,length(Lines[i]));
|
||||
e:=LineEnding;
|
||||
inc(NeededLen,length(e)*(EndPos.Y-StartPos.Y));
|
||||
inc(NeededLen,length(e)*(MaxY-MinY+1));
|
||||
// copy lines
|
||||
SetLength(Result,NeededLen);
|
||||
p:=1;
|
||||
|
Loading…
Reference in New Issue
Block a user