git-svn-id: trunk@18624 -
This commit is contained in:
mattias 2009-02-09 23:31:35 +00:00
parent 838c0d5428
commit b9db2f0fa6

View File

@ -2887,6 +2887,7 @@ function TControlSelection.CheckForLCLChanges(Update: boolean): boolean;
var
i: Integer;
PropsChanged: Boolean;
begin
Result:=false;
if FControls.Count>=1 then begin
@ -2897,6 +2898,7 @@ begin
end;
end;
end;
PropsChanged:=false;
if Update then
begin
if Result then begin
@ -2904,11 +2906,8 @@ begin
for i:=0 to FControls.Count-1 do
if Items[i].IsTComponent and BoundsChanged(Items[i]) then
InvalidateMarkersForComponent(TComponent(Items[i].Persistent));
if not IsResizing then begin
UpdateBounds;
DoChangeProperties;
end;
InvalidateGuideLinesCache;
PropsChanged:=not IsResizing;
end else if LookupRootSelected and (FLookupRoot is TControl) then
begin
// check for form moves
@ -2918,15 +2917,17 @@ begin
begin
if (Items[i].UsedLeft<>GetComponentLeft(FLookupRoot))
or (Items[i].UsedTop<>GetComponentTop(FLookupRoot)) then
begin
UpdateBounds;
DoChangeProperties;
end;
PropsChanged:=not IsResizing;
break;
end;
end;
end;
end;
if PropsChanged then
begin
UpdateBounds;
DoChangeProperties;
end;
end;
procedure TControlSelection.DrawGuideLines(DC: TDesignerDeviceContext);