From f1bd8ce8d98eb357d345e649bc475c8066228e08 Mon Sep 17 00:00:00 2001 From: mnishimura Date: Wed, 25 Jan 2017 02:24:51 +0900 Subject: [PATCH] values should be passed to check values.borderDashes (#2599) --- lib/network/modules/components/nodes/shapes/Image.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/network/modules/components/nodes/shapes/Image.js b/lib/network/modules/components/nodes/shapes/Image.js index becbf4ab..431f6915 100644 --- a/lib/network/modules/components/nodes/shapes/Image.js +++ b/lib/network/modules/components/nodes/shapes/Image.js @@ -42,11 +42,11 @@ class Image extends CircleImageBase { ctx.save(); // if borders are zero width, they will be drawn with width 1 by default. This prevents that if (borderWidth > 0) { - this.enableBorderDashes(ctx); + this.enableBorderDashes(ctx, values); //draw the border ctx.stroke(); //disable dashed border for other elements - this.disableBorderDashes(ctx); + this.disableBorderDashes(ctx, values); } ctx.restore();