aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-02-15 00:27:39 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-02-15 00:27:39 +0100
commit8452eb03c76bef1d80be224a366fa3b606c9aacc (patch)
treef2750135bbc31962bfc7133b1bfe900f17969b0b /src/Interface.cs
parent1042bb5180c990bc94fb18d0022e4dfac9159a7e (diff)
Several Lock while debuging for magicCrow, Image Opacity, could be put in GraphicObj
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Interface.cs b/src/Interface.cs
index 924f092e..e90ae42c 100644
--- a/src/Interface.cs
+++ b/src/Interface.cs
@@ -472,8 +472,12 @@ namespace Crow
lock (DrawingQueue)
g = DrawingQueue.Dequeue ();
g.IsQueueForRedraw = false;
- g.Parent.RegisterClip (g.LastPaintedSlot);
- g.Parent.RegisterClip (g.getSlot ());
+ if (g.Parent == null)
+ continue;
+ lock (g) {
+ g.Parent.RegisterClip (g.LastPaintedSlot);
+ g.Parent.RegisterClip (g.getSlot ());
+ }
}
#if MEASURE_TIME