Skip to content

Commit 5c19b18

Browse files
committed
only open ChangeGroup if null
1 parent 7bbc4ec commit 5c19b18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WpfDesign.Designer/Project/Services/CreateComponentTool.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ protected virtual DesignItem CreateItemWithPosition(DesignContext context, Point
191191
/// </summary>
192192
protected virtual DesignItem CreateItem(DesignContext context)
193193
{
194-
ChangeGroup = context.RootItem.OpenGroup("Add Control");
194+
if (ChangeGroup == null)
195+
ChangeGroup = context.RootItem.OpenGroup("Add Control");
195196
var item = CreateItem(context, componentType);
196197
return item;
197198
}

0 commit comments

Comments
 (0)