mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 22:29:25 +02:00
IDE: using underscore for new components with numbers at end
git-svn-id: trunk@16361 -
This commit is contained in:
parent
0258b583f2
commit
5ed7fa3a72
@ -2390,6 +2390,8 @@ begin
|
||||
Result:=AClassName;
|
||||
if (length(Result)>1) and (Result[1]='T') then
|
||||
Result:=RightStr(Result,length(Result)-1);
|
||||
if Result[length(Result)] in ['0'..'9'] then
|
||||
Result:=Result+'_';
|
||||
Result:=Result+IntToStr(i);
|
||||
while (j>=0)
|
||||
and (CompareText(Result,OwnerComponent.Components[j].Name)<>0) do
|
||||
|
Loading…
Reference in New Issue
Block a user