From 437206f3a2f6f3ca8686028894acfcf1b5ff34f2 Mon Sep 17 00:00:00 2001 From: SergeyLuzyanin Date: Fri, 1 Feb 2019 13:54:59 +0300 Subject: [PATCH] [drawings] Fix connectors params calculation --- common/Drawings/Format/CnxShape.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/Drawings/Format/CnxShape.js b/common/Drawings/Format/CnxShape.js index 0357433559..2e7caa92b2 100644 --- a/common/Drawings/Format/CnxShape.js +++ b/common/Drawings/Format/CnxShape.js @@ -128,8 +128,8 @@ _begin.transform(oTransform); _end.transform(oTransform); - var extX = Math.max(penW/36000.0, Math.abs(_end.x - _begin.x)); - var extY = Math.max(penW/36000.0, Math.abs(_end.y - _begin.y)); + var extX = Math.max(0, Math.abs(_end.x - _begin.x)); + var extY = Math.max(0, Math.abs(_end.y - _begin.y)); var flipV = false; var flipH = false; var rot = 0;