TCustomGrid Column.SizePriority wouldn't be saved correct
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
I see some issues of saving and loading of a grid. One simple fix is here to save the SizePriority of a Column correct (a simple typo bug).
Steps to reproduce:
procedure TForm1.FormCreate(Sender: TObject);
begin
StringGrid1.SaveOptions := [soDesign, soAttributes, soContent, soPosition];
if FileExists('stringgrid1.xml') then
StringGrid1.LoadFromFile('stringgrid1.xml');
end;
procedure TForm1.FormClose(Sender: TObject;
var CloseAction: TCloseAction);
begin
StringGrid1.SaveToFile('stringgrid1.xml');
end;
Without the patch, all Columns get the default entries for the SizePriority.
After the patch, the Columns get the entries saved in the xml.
Simple test added.
Mantis conversion info:
- Mantis ID: 29691
- OS: 7
- OS Build: 32bit
- Build: 51671
- Platform: Windows
- Version: 1.7 (SVN)
- Fixed in version: 1.7 (SVN)
- Fixed in revision: 52029 (#fdeb9c31)
- Target version: 1.6.2