carbon: fixed possible bad loop in TCarbonSpinEdit.CreateWidget.Patch by David Jenkins.issue #21732

git-svn-id: trunk@36962 -
This commit is contained in:
zeljko 2012-04-21 17:34:54 +00:00
parent b0314bb620
commit 322f9edf5d

View File

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