On Fri, Sep 21, 2018 at 8:29 PM AlexeyT via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
> function  StringToColor( const   S: shortstring ): TColor;
> /home/user/lazarus/lcl/graphics.pp(1901,10)
> Description
> StringToColor
>  - given a colour name like 'Blue', returns the corresponding colour value
>
> --> fix to 'clBlue' or better to 'clMagenta'

Strangely enough, the "Colors" map does not have 'clMagenta'. It has 'clBlue'.
See const
  Colors: array[0..106] of TIdentMapEntry = (...
in graphics.pp line 2349.
Does function StringToColor() work as expected?

Anyway I fixed the documentation to say 'clBlue' in r59118.

Juha
-- 
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to