IDEIntf: Correct handling of Default Value in TImageIndexPropertyEditor. Issue #30597, patch from Anton.

git-svn-id: trunk@52962 -
This commit is contained in:
juha 2016-09-13 19:33:18 +00:00
parent cdd2334167
commit 3463c904e7

View File

@ -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