Forum > LazReport

BUG FIX to set HideZeroValues Flag in LazDesigner

(1/1)

luca:
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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TfrCustomMemoView.SetHideZeroValues(AValue: Boolean);begin  if WordBreak<>AValue then    ModifyFlag(flHideZeros, AValue);end; 
To correct the bug you need to change it in

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TfrCustomMemoView.SetHideZeroValues(AValue: Boolean);begin  if HideZeroValues<>AValue then    ModifyFlag(flHideZeros, AValue);end;                
Regards
Luca

zeljko:
Pls open an issue about it.

Navigation

[0] Message Index

Go to full version