[Lazarus] Typo in TFPCustomFont?

Bart bartjunk64 at gmail.com
Sat Jan 19 18:39:10 CET 2013


On 1/19/13, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
> On Sat, 19 Jan 2013 16:30:50 +0100
> Felipe Monteiro de Carvalho <felipemonteiro.carvalho at gmail.com> wrote:
>
>> On Sat, Jan 19, 2013 at 4:16 PM, Bart <bartjunk64 at gmail.com> wrote:
>> > It is now > 20601, but this breaks building with 2.6.2RC1...
>>
>> But if we change then it won't work with RC2 when it is released =D

That's why I proposed to change it to something like this:

  {$IF (FPC_FULLVERSION<20600) or defined(lazcanvas_typo)} //changed
in 2.6.2 and 2.7; remove when FPC 2.6.2+ only is supported
  Font.StrikeTrough := AFont.StrikeTrough; //old version with typo
  {$ELSE}
  Font.StrikeThrough := AFont.StrikeThrough;
  {$ENDIF}

It'll build with 2.6.2RC1 with -dlazcanvas_typo and with final 2.6.2
without the define.

>
> It will work. The old still exists, it is only marked deprecated.
>

Not in current Lazarus trunk (r39890) ...

Bart




More information about the Lazarus mailing list