aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/TemplatedGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GraphicObjects/TemplatedGroup.cs')
-rw-r--r--src/GraphicObjects/TemplatedGroup.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/GraphicObjects/TemplatedGroup.cs b/src/GraphicObjects/TemplatedGroup.cs
index 3d5b7e83..dda03119 100644
--- a/src/GraphicObjects/TemplatedGroup.cs
+++ b/src/GraphicObjects/TemplatedGroup.cs
@@ -39,7 +39,8 @@ namespace Crow
public abstract class TemplatedGroup : TemplatedControl
{
#region CTOR
- public TemplatedGroup () : base(){}
+ public TemplatedGroup() : base(){}
+ public TemplatedGroup (Interface iface) : base(iface){}
#endregion
protected Group items;
@@ -300,9 +301,7 @@ namespace Crow
page = items;
itemPerPage = int.MaxValue;
} else if (typeof(GenericStack).IsAssignableFrom (items.GetType ())) {
- GenericStack gs = new GenericStack ();
- gs.CurrentInterface = items.CurrentInterface;
- gs.Initialize ();
+ GenericStack gs = new GenericStack (items.CurrentInterface);
gs.Orientation = (items as GenericStack).Orientation;
gs.Width = items.Width;
gs.Height = items.Height;