IDE: do not emit translatable strings for divider menuitems (with caption='-'), patch by Nur Cholif Murtadho, bug #26553

git-svn-id: trunk@52695 -
This commit is contained in:
maxim 2016-07-15 21:51:21 +00:00
parent b4d93e4f9e
commit fb60fef065

View File

@ -4930,6 +4930,7 @@ begin
if not Assigned(Instance) then exit;
if not Assigned(PropInfo) then exit;
if SysUtils.CompareText(PropInfo^.PropType^.Name,'TTRANSLATESTRING')<>0 then exit;
if (SysUtils.CompareText(Instance.ClassName,'TMENUITEM')=0) and (Content='-') then exit;
if Writer.Driver is TLRSObjectWriter then begin
LRSWriter:=TLRSObjectWriter(Writer.Driver);
Path:=LRSWriter.GetStackPath;