mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-10 07:57:12 +01:00
carbon: simplify CarbonEdit fix for endless-loops
git-svn-id: trunk@26358 -
This commit is contained in:
parent
bcb0f4c05e
commit
23c83a2093
@ -1442,17 +1442,7 @@ begin
|
||||
inc(r.Left, EditExtraLeft);
|
||||
dec(r.Right, EditExtraRight);
|
||||
|
||||
FTooSmall:=False;
|
||||
if r.Right<r.Left then
|
||||
begin
|
||||
FTooSmall:=True;
|
||||
r.Right:=r.Left;
|
||||
end;
|
||||
if r.Bottom<r.Top then
|
||||
begin
|
||||
FTooSmall:=True;
|
||||
r.Bottom:=r.Top;
|
||||
end;
|
||||
FTooSmall:=(r.Right<r.Left) or (r.Bottom<r.Top);
|
||||
if FTooSmall then FSmallBounds:=ARect;
|
||||
|
||||
Result := inherited SetBounds(r);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user