Calling procedurelist on 125% dpi display crashes with "InvalidatePreferredSize loop detected"
Original Reporter info from Mantis: rvk
-
Reporter name: Rik van Kekem
Original Reporter info from Mantis: rvk
- Reporter name: Rik van Kekem
Description:
When calling Search > Procedure List (Alt+G) on a display set at 125% the IDE will crash with:
TControl.InvalidatePreferredSize loop detected TB:TToolBar Bounds=l=0,t=0,r=950,b=32.
When the procedurelist.lfm is touched (@ 125% dpi) and saved and the IDE is recompiled it works correctly because the lfm is saved for 125%.
Steps to reproduce:
In standard trunk (or even Lazarus 1.8.2), call the Procedure List (Alt+G) and the crash will happen (when your screen is set at 125%).
Additional information:
Somehow in 125% the TB (TToolbar) keeps setting the cfAutoSizeNeeded in Form.FControlFlags for TProcedureListForm which results in the loop (I think).
See forum topic:
https://forum.lazarus.freepascal.org/index.php/topic,40795.0.html