UPD: Allow different character case for Type entry in icon theme.

This commit is contained in:
cobines 2011-07-19 15:35:01 +00:00
commit 0a20849fa0

View file

@ -373,11 +373,11 @@ begin
IconMinSize:= IniFile.ReadInteger(sIconDirName, 'MinSize', IconSize);
IconThreshold:= IniFile.ReadInteger(sIconDirName, 'Threshold', 2);
if IconTypeStr = 'Fixed' then
if SameText(IconTypeStr, 'Fixed') then
IconType:= itFixed
else if IconTypeStr = 'Scalable' then
else if SameText(IconTypeStr, 'Scalable') then
IconType:= itScalable
else if IconTypeStr = 'Threshold' then
else if SameText(IconTypeStr, 'Threshold') then
IconType:= itThreshold
else
begin