Renaming a component on the form may change a unit name
- Lazarus/FPC Version: Lazarus 2.3.0 (rev main-2_3-944-g06352700) FPC 3.2.2 i386-win32-win32/win64
- Operating System: Windows 11
- CPU / Bitness: tested 32 bit and 64 bit
Steps to reproduce
- Drop a
TSynEdit
on the form --> This adds unitSynEdit
to the "uses" clause and a component namedSynEdit1
by default. - Rename the component to
SynEdit
--> Now the unit and the component have the same names; that's ok and is accepted. - But now rename the component once more, maybe to
XMLSynEdit
--> The component is renamed, but in the "uses" clauseSynEdit
has been renamed toXMLSynEdit
as well.
What did you expect
Renaming components should not affect the "uses" clause.