Recent

Author Topic: mbColorLib typo in function GetBlue  (Read 1374 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: 1679
  • 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.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

wp

  • Hero Member
  • *****
  • Posts: 9011
Re: mbColorLib typo in function GetBlue
« Reply #2 on: September 03, 2021, 10:02:58 am »
Fixed in the CCR version. Thanks for reporting.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018