synedit: fixed issue #12555

* removed lazarus specific code to linearize the possible values of a set, not necessary anymore since the internal format of set has changed on big endian cpu, see http://wiki.lazarus.freepascal.org/index.php?title=User_Changes_2.2.2&oldid=31423#Internal_format_of_sets

git-svn-id: trunk@17199 -
This commit is contained in:
vincents 2008-11-03 15:14:09 +00:00
parent bf64fc10ff
commit ad4ab60d09

View File

@ -869,11 +869,7 @@ begin
{$ELSE}
ASSERT(SizeOf(TFontStyles) = 1);
{$ENDIF}
{$IFDEF SYN_LAZARUS}
idx := integer(Value);
{$ELSE}
idx := PByte(@Value)^;
{$ENDIF}
ASSERT(idx <= High(TheStockFontPatterns));
UseFontHandles;
@ -1196,11 +1192,7 @@ procedure TheTextDrawer2.SetStyle(Value: TFontStyles);
var
idx: Integer;
begin
{$IFDEF SYN_LAZARUS}
idx := integer(Value);
{$ELSE}
idx := PByte(@Value)^;
{$ENDIF}
if FFonts[idx] <> 0 then
begin
FCrntFont := FFonts[idx];