aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/GraphicObjects/GenericStack.cs10
-rw-r--r--src/GraphicObjects/TemplatedContainer.cs8
-rw-r--r--src/GraphicObjects/Window.cs4
-rw-r--r--src/LayoutingQueueItem.cs4
4 files changed, 21 insertions, 5 deletions
diff --git a/src/GraphicObjects/GenericStack.cs b/src/GraphicObjects/GenericStack.cs
index ae98971c..968c76ac 100644
--- a/src/GraphicObjects/GenericStack.cs
+++ b/src/GraphicObjects/GenericStack.cs
@@ -10,6 +10,12 @@ namespace Crow
{
public class GenericStack : Group
{
+ internal class Page
+ {
+ public byte[] bmp;
+ public int Size;
+ }
+
#region CTOR
public GenericStack()
: base()
@@ -87,13 +93,13 @@ namespace Crow
foreach (GraphicObject c in Children.Where(ch=>ch.Visible)) {
c.Slot.X = d;
d += c.Slot.Width + Spacing;
- //c.RegisterForLayouting ((int)LayoutingType.Y);
+ c.RegisterForLayouting ((int)LayoutingType.Y);
}
} else {
foreach (GraphicObject c in Children.Where(ch=>ch.Visible)) {
c.Slot.Y = d;
d += c.Slot.Height + Spacing;
- //c.RegisterForLayouting ((int)LayoutingType.X);
+ c.RegisterForLayouting ((int)LayoutingType.X);
}
}
}
diff --git a/src/GraphicObjects/TemplatedContainer.cs b/src/GraphicObjects/TemplatedContainer.cs
index 0bb11fc7..3003d486 100644
--- a/src/GraphicObjects/TemplatedContainer.cs
+++ b/src/GraphicObjects/TemplatedContainer.cs
@@ -76,8 +76,12 @@ namespace Crow
if (!xr.IsStartElement ())
continue;
- if (xr.Name == "Template")
- continue;
+
+ if (xr.Name == "Template"){
+ xr.Skip ();
+ if (!xr.IsStartElement ())
+ continue;
+ }
Type t = Type.GetType ("Crow." + xr.Name);
GraphicObject go = (GraphicObject)Activator.CreateInstance (t);
diff --git a/src/GraphicObjects/Window.cs b/src/GraphicObjects/Window.cs
index 8e2724c4..50176d6f 100644
--- a/src/GraphicObjects/Window.cs
+++ b/src/GraphicObjects/Window.cs
@@ -29,7 +29,9 @@ namespace Crow
Direction currentDirection = Direction.None;
#region CTOR
- public Window () : base() {}
+ public Window () : base() {
+
+ }
#endregion
#region GraphicObject overrides
diff --git a/src/LayoutingQueueItem.cs b/src/LayoutingQueueItem.cs
index c2d84c54..95234112 100644
--- a/src/LayoutingQueueItem.cs
+++ b/src/LayoutingQueueItem.cs
@@ -52,6 +52,10 @@ namespace Crow
Debug.WriteLine ("Layouting => " + this.ToString ());
#endif
try {
+ if (GraphicObject.Parent == null){
+ Debug.WriteLine("ERROR: processLayouting, no parent for: " + GraphicObject.ToString());
+ return;
+ }
GraphicObject.UpdateLayout (LayoutType);
} catch (Exception ex) {
Debug.WriteLine ("Layouting error: " + ex.ToString ());