lcl: lcltranslator: use typeinfo instead of type name

git-svn-id: trunk@56124 -
This commit is contained in:
mattias 2017-10-18 12:00:30 +00:00
parent 82dabee557
commit faa58c53b1

View File

@ -284,8 +284,7 @@ var
Reader: TReader;
begin
Result := '';
if (PropInfo = nil) or
(SysUtils.CompareText(PropInfo^.PropType^.Name, 'TTRANSLATESTRING') <> 0) then
if (PropInfo=nil) or (PropInfo^.PropType<>TypeInfo(TTranslateString)) then
exit;
// do not translate at design time