mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-03 07:59:29 +01:00
IDEIntf: Correct handling of Default Value in TImageIndexPropertyEditor. Issue #30597, patch from Anton.
git-svn-id: trunk@52962 -
This commit is contained in:
parent
cdd2334167
commit
3463c904e7
@ -717,7 +717,8 @@ var
|
||||
Images: TCustomImageList;
|
||||
I: Integer;
|
||||
begin
|
||||
Proc(IntToStr(GetDefaultOrdValue));
|
||||
if GetDefaultOrdValue <> NoDefaultValue then
|
||||
Proc(IntToStr(GetDefaultOrdValue));
|
||||
Images := GetImageList;
|
||||
if Assigned(Images) then
|
||||
for I := 0 to Images.Count - 1 do
|
||||
@ -742,7 +743,8 @@ var
|
||||
R: TRect;
|
||||
OldColor: TColor;
|
||||
begin
|
||||
Dec(Index);
|
||||
if GetDefaultOrdValue <> NoDefaultValue then
|
||||
Dec(Index);
|
||||
Images := GetImageList;
|
||||
R := ARect;
|
||||
if Assigned(Images) then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user