From e3bb9b00218d683cd5fc5b98ae8882d8d4eec8f8 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Wed, 20 Jan 2016 08:04:52 +0100 Subject: [PATCH] Use of Slot.Dimentions in paint instead of Parent.Context(slot) --- src/GraphicObjects/GraphicObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index fe707957..b5884d5e 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -748,7 +748,7 @@ namespace go Rectangle rb = Parent.ContextCoordinates(Slot); - using (ImageSurface source = new ImageSurface(bmp, Format.Argb32, rb.Width, rb.Height, 4 * Slot.Width)) { + using (ImageSurface source = new ImageSurface(bmp, Format.Argb32, Slot.Width, Slot.Height, 4 * Slot.Width)) { if (this.Background == Color.Clear) { ctx.Save (); ctx.Operator = Operator.Clear; -- 2.47.3