Change of property BorderSpacing.Left for an inherited control is not save in the .lfm file

  • Lazarus/FPC Version: Lazarus 2.2.0 (rev lazarus_2_2_0) FPC 3.2.2 x86_64-linux-gtk2
  • Operating System: Linux Ubuntu 18.04
  • CPU / Bitness: 64bit

What happens

The change of property BorderSpacing.Left of inherited controls is not save in the .lfm file

What did you expect

The change should be saved.

Steps to reproduce

  1. Create Form1 with 2 Edit controls (Edit1 and Edit2)

  2. Set AnchorSideLeft.Control of Edit2 to Edit1

  3. Set BorderSpacing.Left of Edit2 to 50

  4. Save unit1

  5. Create Form2 inherited from Form1 (File -> New ->inherited item -> inherited project component). First problem, the inherited controls (Edit1 and Edit2) are not shown in the newly created form.

  6. Save and close unit2

  7. Reopen unit2 and show the form (F12) now the inherited controls are correctly shown

  8. Change BorderSpacing.Left of Edit2 to 0

  9. Save and close unit2

  10. Reopen unit2

  11. The change we made in step 8 is not saved in the unit2.lfm, the BorderSpacing.Left value returns back to 50inherited_borderspacing_left_is_not_saved.zip