function IsEmptyRow in Grids.pas uses a wrong variable
Original Reporter info from Mantis: kinlion
-
Reporter name: Kinlion Yan
Original Reporter info from Mantis: kinlion
- Reporter name: Kinlion Yan
Description:
at line 6881, in function IsEmptyRow.
" if GetCells(i, FRow)<>'' then begin "
I think here should be ARow instead of FRow.
Mantis conversion info:
- Mantis ID: 32965
- OS: Windows
- OS Build: Windows
- Build: 54278
- Platform: Windows X64
- Version: 2.3 (SVN)
- Fixed in version: 1.8.2
- Fixed in revision: r57005 (#b63451bd)
- Target version: 1.8.2
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- FPC Admin account assigned to @flyingsheep
assigned to @flyingsheep
- FPC Admin account added CategoryLCL Version2.3 (SVN) labels
added CategoryLCL Version2.3 (SVN) labels
- FPC Admin account changed milestone to %Version 1.8.2
changed milestone to %Version 1.8.2
- Author Owner
yes in lines 7485 and 7141 with my 1.8.0 release
From what I see the nested functions are accessing the same value as what
was being past to it within the code. so at the moment It mostly isn't causing
and issue but, if the Property "ROW" ever gets changed to a getter and modifications then things may not work so well in the future.Why this was done is beyond me, its like a time bomb...
- Author Owner
Converted from Mantis. Note by Bart Broersma @flyingsheep
- Mantis submitter username: Bart @flyingsheep
- Mantis submitter real name: Bart Broersma
Hmm, there are 2 copies of this local function, not sure why.
Maybe it should be a method of TCustomGrid? - Author Owner
Converted from Mantis. Note by Bart Broersma @flyingsheep
- Mantis submitter username: Bart @flyingsheep
- Mantis submitter real name: Bart Broersma
Please test and close if OK.
- Author Owner
Converted from Mantis. Note by Kinlion Yan
- Mantis submitter username: kinlion
- Mantis submitter real name: Kinlion Yan
Thanks Bart.
I think it would be better if the function is public, but it's another title.
It's my first bug-report, and I don't know how to test.
- Author Owner
Converted from Mantis. Note by Bart Broersma @flyingsheep
- Mantis submitter username: Bart @flyingsheep
- Mantis submitter real name: Bart Broersma
@Kinlion
You can test with latest trunk, or if you have 1.8, you can apply the patch (https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/grids.pas?r1=57005&r2=57004&pathrev=57005&root=lazarus&view=patch) to your 1.8 version.If you need further help with this, please ask on ML or forum, we'll be happy to assist.
- Author Owner
Converted from Mantis. Note by Kinlion Yan
- Mantis submitter username: kinlion
- Mantis submitter real name: Kinlion Yan
I have cloned the latest trunk using git.
The issue has been solved.
Thanks again. - Author Owner
Converted from Mantis. Note by Kinlion Yan
- Mantis submitter username: kinlion
- Mantis submitter real name: Kinlion Yan
Where is the 'Close' button?
I'm sure I have seen it before, but I can't find it now. - Author Owner
Converted from Mantis. Note by Bart Broersma @flyingsheep
- Mantis submitter username: Bart @flyingsheep
- Mantis submitter real name: Bart Broersma
Thanks for testing.
The Close button should be there now (the issue must have status "resolved", otherwise this button is not there).
Please close.
- Author Owner
Converted from Mantis. Note by Kinlion Yan
- Mantis submitter username: kinlion
- Mantis submitter real name: Kinlion Yan
Yes, I can close it now :)
- Author Owner
Converted from Mantis. Note by Kinlion Yan
- Mantis submitter username: kinlion
- Mantis submitter real name: Kinlion Yan
The issue has been solved. Thanks to Bart Broersma.
- FPC Admin account closed
closed
- FPC Admin account locked this issue
locked this issue
- Author Owner
Attached files:
- grids.pas (Size: 376034 bytes, user: kinlion (Kinlion Yan), date: 2018-01-07)