mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 11:49:55 +02:00
cocoa: preventing spinedit value from being change while destroying the handle. #34468
git-svn-id: trunk@59380 -
This commit is contained in:
parent
1c141eec0a
commit
b5d3a2e2ab
@ -1766,6 +1766,9 @@ var
|
||||
lNSStr: NSString;
|
||||
lStr: string;
|
||||
begin
|
||||
// Stepper not might be assigend while creating or destroying handle
|
||||
if not Assigned(Stepper) then Exit;
|
||||
|
||||
lStr := Format('%.*f', [DecimalPlaces, Stepper.doubleValue()]);
|
||||
lNSStr := CocoaUtils.NSStringUtf8(lStr);
|
||||
setStringValue(lNSStr);
|
||||
|
Loading…
Reference in New Issue
Block a user