mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 20:19:24 +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);
|
CreateCFString(AParams.Caption, CFString);
|
||||||
try
|
try
|
||||||
if OSError(
|
if OSError(
|
||||||
CreateEditUniCodeTextControl(GetTopParentWindow,
|
CreateEditUniCodeTextControl(GetTopParentWindow, ParamsToCarbonRect(AParams),
|
||||||
HIRectToCarbonRect(GetEditBounds(ParamsToHIRect(AParams))),
|
|
||||||
CFString, False, nil, Widget),
|
CFString, False, nil, Widget),
|
||||||
Self, SCreateWidget, 'CreateEditUniCodeTextControl') then RaiseCreateWidgetError(LCLObject);
|
Self, SCreateWidget, 'CreateEditUniCodeTextControl') then RaiseCreateWidgetError(LCLObject);
|
||||||
finally
|
finally
|
||||||
@ -1179,6 +1178,7 @@ begin
|
|||||||
|
|
||||||
inherited;
|
inherited;
|
||||||
|
|
||||||
|
SetBounds(ParamsToRect(AParams));
|
||||||
UpdateControl;
|
UpdateControl;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user