mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 03:39:48 +01:00 
			
		
		
		
	designer: menu item align now enabled when one control is selected
git-svn-id: trunk@15049 -
This commit is contained in:
		
							parent
							
								
									b7b30e862a
								
							
						
					
					
						commit
						3864f806a5
					
				@ -740,19 +740,15 @@ var
 | 
			
		||||
  Item: TIdentifierListItem;
 | 
			
		||||
  RootNode: TCodeTreeNode;
 | 
			
		||||
begin
 | 
			
		||||
  DebugLn(['TIdentifierList.ToolTreeChange ',Tool.MainFilename,' ',NodesDeleting]);
 | 
			
		||||
  if (Tool.Tree=nil) then exit;
 | 
			
		||||
  RootNode:=Tool.Tree.Root;
 | 
			
		||||
  DebugLn(['TIdentifierList.ToolTreeChange AAA1']);
 | 
			
		||||
  if FIdentView.Count>0 then CTDumpStack;
 | 
			
		||||
  if RootNode=nil then exit;
 | 
			
		||||
  AVLNode:=FIdentView.FindLowest;
 | 
			
		||||
  DebugLn(['TIdentifierList.ToolTreeChange AAA2 ',FIdentView.Count]);
 | 
			
		||||
  while AVLNode<>nil do begin
 | 
			
		||||
    Item:=TIdentifierListItem(AVLNode.Data);
 | 
			
		||||
    if (Item.Node<>nil) and Item.Node.HasAsRoot(RootNode) then begin
 | 
			
		||||
      Item.UnbindNode;
 | 
			
		||||
      DebugLn(['TIdentifierList.ToolTreeChange ',Item.FNodeHash]);
 | 
			
		||||
    end;
 | 
			
		||||
    AVLNode:=FIdentView.FindSuccessor(AVLNode);
 | 
			
		||||
  end;
 | 
			
		||||
 | 
			
		||||
@ -2812,7 +2812,7 @@ begin
 | 
			
		||||
 | 
			
		||||
  AddComponentEditorMenuItems(PopupMenuComponentEditor,true);
 | 
			
		||||
 | 
			
		||||
  DesignerMenuAlign.Enabled := MultiCompsAreSelected;
 | 
			
		||||
  DesignerMenuAlign.Enabled := CompsAreSelected;
 | 
			
		||||
  DesignerMenuMirrorHorizontal.Enabled := MultiCompsAreSelected;
 | 
			
		||||
  DesignerMenuMirrorVertical.Enabled := MultiCompsAreSelected;
 | 
			
		||||
  DesignerMenuScale.Enabled := CompsAreSelected and not OnlyNonVisualsAreSelected;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user