synedit: fised implementation of GetStyleIndex, hint from Martin Friebe (issue #12620)

git-svn-id: trunk@17376 -
This commit is contained in:
vincents 2008-11-13 18:41:53 +00:00
parent 30f4e50753
commit 34b6f45af2

View File

@ -403,7 +403,7 @@ begin
result := 0;
for item := low (TFontStyle) to high(TFontStyle) do
if item in Value then
result := result + 1 shr ord(item);
result := result + 1 shl ord(item);
end;
{$ENDIF}