From 571ca31dbf1f676d2ed6602c9783d0ebc52c0117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 18 Sep 2011 10:56:04 +0200 Subject: [PATCH] Move ctx.restore() to same level as ctx.save(). Closes #51. --- src/path/Path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Path.js b/src/path/Path.js index 3a184b2a..31f1cd92 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1313,8 +1313,8 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ ctx.rect(point._x - 1, point._y - 1, 2, 2); ctx.fillStyle = '#ffffff'; ctx.fill(); - ctx.restore(); } + ctx.restore(); } }