lcl: lcltranslator: use typeinfo instead of type name

git-svn-id: branches/fixes_1_8@56128 -
This commit is contained in:
mattias 2017-10-18 12:03:03 +00:00
parent 04ffbfcd3f
commit 4ec8f57ef7

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