cocoa: preventing spinedit value from being change while destroying the handle. #34468

git-svn-id: trunk@59380 -
This commit is contained in:
dmitry 2018-10-28 22:45:53 +00:00
parent 1c141eec0a
commit b5d3a2e2ab

View File

@ -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);