mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 18:17:18 +02:00
carbon: fixed possible bad loop in TCarbonSpinEdit.CreateWidget.Patch by David Jenkins.issue #21732
git-svn-id: trunk@36962 -
This commit is contained in:
parent
b0314bb620
commit
322f9edf5d
@ -1151,8 +1151,7 @@ begin
|
||||
CreateCFString(AParams.Caption, CFString);
|
||||
try
|
||||
if OSError(
|
||||
CreateEditUniCodeTextControl(GetTopParentWindow,
|
||||
HIRectToCarbonRect(GetEditBounds(ParamsToHIRect(AParams))),
|
||||
CreateEditUniCodeTextControl(GetTopParentWindow, ParamsToCarbonRect(AParams),
|
||||
CFString, False, nil, Widget),
|
||||
Self, SCreateWidget, 'CreateEditUniCodeTextControl') then RaiseCreateWidgetError(LCLObject);
|
||||
finally
|
||||
@ -1179,6 +1178,7 @@ begin
|
||||
|
||||
inherited;
|
||||
|
||||
SetBounds(ParamsToRect(AParams));
|
||||
UpdateControl;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user