mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 01:39:42 +02:00
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:
parent
bf64fc10ff
commit
ad4ab60d09
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user