Recent

Author Topic: mbColorLib typo in function GetBlue  (Read 2574 times)

indydev

  • New Member
  • *
  • Posts: 26
mbColorLib typo in function GetBlue
« on: September 03, 2021, 01:49:28 am »
I was using mbColorLib and noticed that the property Blue was retreiving the wrong color (red). A look at the source reveals that the function GetBlue was calling GetRValue instead of GetBValue:

Code: Pascal  [Select][+][-]
  1. function THSLRingPicker.GetBlue: Integer;
  2. begin
  3.   Result := GetRValue(FSelectedColor);
  4. end;


As this code is installed from the sourceforge ccr I couldn't figure out where notify a maintainer. The port to Lazarus was done by Werner Pamler

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1988
  • Former Delphi 1-7, 10.2 user
Re: mbColorLib typo in function GetBlue
« Reply #1 on: September 03, 2021, 02:47:08 am »
If you look at the Forum's left column, you should see a link for "CCR Bugs", follow the link and report the bug.
Lazarus 2.3, FPC 3.3.1 macOS 12.3.1 x86_64 Xcode 13.4
Lazarus 2.3, FPC 3.3.1 macOS 12.3.1 aarch64 Xcode 13.4

wp

  • Hero Member
  • *****
  • Posts: 10060
Re: mbColorLib typo in function GetBlue
« Reply #2 on: September 03, 2021, 10:02:58 am »
Fixed in the CCR version. Thanks for reporting.

 

TinyPortal © 2005-2018