Recent

Author Topic: BUG FIX to set HideZeroValues Flag in LazDesigner  (Read 1482 times)

luca

  • Jr. Member
  • **
  • Posts: 66
BUG FIX to set HideZeroValues Flag in LazDesigner
« on: October 23, 2021, 03:06:16 pm »
HideZeroValues Flag is set to False as default value.
If you change it to True is not possible to set it back to False.

I found this bug in frClass unit
Code: Pascal  [Select][+][-]
  1. procedure TfrCustomMemoView.SetHideZeroValues(AValue: Boolean);
  2. begin
  3.   if WordBreak<>AValue then
  4.     ModifyFlag(flHideZeros, AValue);
  5. end;
  6.  

To correct the bug you need to change it in
Code: Pascal  [Select][+][-]
  1. procedure TfrCustomMemoView.SetHideZeroValues(AValue: Boolean);
  2. begin
  3.   if HideZeroValues<>AValue then
  4.     ModifyFlag(flHideZeros, AValue);
  5. end;              
  6.  

Regards
Luca

zeljko

  • Hero Member
  • *****
  • Posts: 1191
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: BUG FIX to set HideZeroValues Flag in LazDesigner
« Reply #1 on: October 26, 2021, 10:38:45 am »
Pls open an issue about it.

 

TinyPortal © 2005-2018