diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-06 22:48:20 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-06 22:49:34 +0100 |
| commit | bf1c5457f87dbe1a30693f18c1599bd3fd1dd860 (patch) | |
| tree | 07ff96c598722d82507cc1bf388aeb44b3caf6b8 /src/GraphicObjects/GraphicObject.cs | |
| parent | f6418d2a9219a63116ba706cbf54d8c0e8d88bff (diff) | |
divers
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index b8b2a38f..8b6ea18f 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -626,7 +626,8 @@ namespace Crow public virtual void RegisterClip(Rectangle clip){ if (CacheEnabled && bmp != null) Clipping.AddRectangle (clip + ClientRectangle.Position); - Parent.RegisterClip (clip + Slot.Position + ClientRectangle.Position); + if (Parent != null) + Parent.RegisterClip (clip + Slot.Position + ClientRectangle.Position); } public bool IsQueueForGraphicUpdate = false; /// <summary> @@ -1516,7 +1517,6 @@ namespace Crow #if DEBUG_LOAD Debug.WriteLine ("ApplyStyle for " + this.ToString ()); #endif - using (StreamReader sr = new StreamReader (s)) { while (!sr.EndOfStream) { string tmp = sr.ReadLine (); @@ -1544,7 +1544,6 @@ namespace Crow Style = stylePath; applyStyle (); } - while (reader.MoveToNextAttribute ()) { if (reader.Name == "Style") continue; |