TFloatSpinEdit emits dealyed secondary OnChange on Value change when DecimalPlaces=0
Original Reporter info from Mantis: Valdas
-
Reporter name: Valdas Jankūnas
Original Reporter info from Mantis: Valdas
- Reporter name: Valdas Jankūnas
Description:
When FloatSpinEdit.DecimalPlaces is set to 0 and Value is changed programmatically first time then secondary OnChange event occurs outside procedure that changes that Value.
Steps to reproduce:
Try attached test project:
- start application,
- press "DecimalPlaces := 0",
- press "Value := 2";
Memo output:
"WS = GTK2
FloatSpinEdit1Change occurred
Setting FloatSpinEdit.DecimalPlaces := 0
FloatSpinEdit1Change occured
Button1Click: START
Button1Click: change value in FloatSpinEdit
Button1Click: END
FloatSpinEdit1Change occurred"
Additional information:
Maybe related #31618 (closed)
Qt and Qt5 don't have this behavior.
Mantis conversion info:
- Mantis ID: 32368
- OS: Kubuntu 17.04
- Build: Lazarus 1.9.0 r55760M FPC 3.1.1
- Platform: linux 64 bit
- Version: 1.9 (SVN)