From 48d3fb076a2a93a07c4fc5aab2b2bf5495a498ec Mon Sep 17 00:00:00 2001 From: Sergey Luzyanin Date: Tue, 18 Nov 2025 17:52:30 +0300 Subject: [PATCH] fix bug 78521 --- common/Drawings/Format/Format.js | 2 +- visio/model/overrides.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/Drawings/Format/Format.js b/common/Drawings/Format/Format.js index 4e06176edd..4419e9f75e 100644 --- a/common/Drawings/Format/Format.js +++ b/common/Drawings/Format/Format.js @@ -7527,7 +7527,7 @@ return "arrow"; }; EndArrow.prototype.isPresent = function () { - return AscFormat.isRealNumber(this.type) && this.type !== LineEndType.None; + return AscFormat.isRealNumber(this.type) && this.type !== LineEndType.None && this.type !== LineEndType.vsdxNone; }; diff --git a/visio/model/overrides.js b/visio/model/overrides.js index 5a77e568d4..032d6f0a1e 100644 --- a/visio/model/overrides.js +++ b/visio/model/overrides.js @@ -265,6 +265,7 @@ AscCommon.CShapeDrawer.prototype.ds = function(saveToPdfMode) { } this.Graphics.p_color(R, G, B, alpha); + if (this.IsRectShape && this.Graphics.AddSmartRect !== undefined) { if (this.Shape.extX != null) { this.Graphics.AddSmartRect(0, 0, this.Shape.extX, this.Shape.extY, this.StrokeWidth); @@ -279,7 +280,7 @@ AscCommon.CShapeDrawer.prototype.ds = function(saveToPdfMode) { this.Graphics.m_oContext.lineJoin = this.OldLineJoin; } - if (this.IsCurrentPathCanArrows === true) { + if (this.isArrowPresent()) { this.drawArrows(false); } };