mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 20:59:12 +02:00
clean up
git-svn-id: trunk@18624 -
This commit is contained in:
parent
838c0d5428
commit
b9db2f0fa6
@ -2887,6 +2887,7 @@ function TControlSelection.CheckForLCLChanges(Update: boolean): boolean;
|
|||||||
|
|
||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
|
PropsChanged: Boolean;
|
||||||
begin
|
begin
|
||||||
Result:=false;
|
Result:=false;
|
||||||
if FControls.Count>=1 then begin
|
if FControls.Count>=1 then begin
|
||||||
@ -2897,6 +2898,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
PropsChanged:=false;
|
||||||
if Update then
|
if Update then
|
||||||
begin
|
begin
|
||||||
if Result then begin
|
if Result then begin
|
||||||
@ -2904,11 +2906,8 @@ begin
|
|||||||
for i:=0 to FControls.Count-1 do
|
for i:=0 to FControls.Count-1 do
|
||||||
if Items[i].IsTComponent and BoundsChanged(Items[i]) then
|
if Items[i].IsTComponent and BoundsChanged(Items[i]) then
|
||||||
InvalidateMarkersForComponent(TComponent(Items[i].Persistent));
|
InvalidateMarkersForComponent(TComponent(Items[i].Persistent));
|
||||||
if not IsResizing then begin
|
|
||||||
UpdateBounds;
|
|
||||||
DoChangeProperties;
|
|
||||||
end;
|
|
||||||
InvalidateGuideLinesCache;
|
InvalidateGuideLinesCache;
|
||||||
|
PropsChanged:=not IsResizing;
|
||||||
end else if LookupRootSelected and (FLookupRoot is TControl) then
|
end else if LookupRootSelected and (FLookupRoot is TControl) then
|
||||||
begin
|
begin
|
||||||
// check for form moves
|
// check for form moves
|
||||||
@ -2918,15 +2917,17 @@ begin
|
|||||||
begin
|
begin
|
||||||
if (Items[i].UsedLeft<>GetComponentLeft(FLookupRoot))
|
if (Items[i].UsedLeft<>GetComponentLeft(FLookupRoot))
|
||||||
or (Items[i].UsedTop<>GetComponentTop(FLookupRoot)) then
|
or (Items[i].UsedTop<>GetComponentTop(FLookupRoot)) then
|
||||||
begin
|
PropsChanged:=not IsResizing;
|
||||||
UpdateBounds;
|
|
||||||
DoChangeProperties;
|
|
||||||
end;
|
|
||||||
break;
|
break;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
if PropsChanged then
|
||||||
|
begin
|
||||||
|
UpdateBounds;
|
||||||
|
DoChangeProperties;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TControlSelection.DrawGuideLines(DC: TDesignerDeviceContext);
|
procedure TControlSelection.DrawGuideLines(DC: TDesignerDeviceContext);
|
||||||
|
Loading…
Reference in New Issue
Block a user