fix bug 78521

This commit is contained in:
Sergey Luzyanin
2025-11-18 17:52:30 +03:00
parent 5b683b1909
commit 48d3fb076a
2 changed files with 3 additions and 2 deletions

View File

@ -7527,7 +7527,7 @@
return "arrow"; return "arrow";
}; };
EndArrow.prototype.isPresent = function () { 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;
}; };

View File

@ -265,6 +265,7 @@ AscCommon.CShapeDrawer.prototype.ds = function(saveToPdfMode) {
} }
this.Graphics.p_color(R, G, B, alpha); this.Graphics.p_color(R, G, B, alpha);
if (this.IsRectShape && this.Graphics.AddSmartRect !== undefined) { if (this.IsRectShape && this.Graphics.AddSmartRect !== undefined) {
if (this.Shape.extX != null) { if (this.Shape.extX != null) {
this.Graphics.AddSmartRect(0, 0, this.Shape.extX, this.Shape.extY, this.StrokeWidth); 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; this.Graphics.m_oContext.lineJoin = this.OldLineJoin;
} }
if (this.IsCurrentPathCanArrows === true) { if (this.isArrowPresent()) {
this.drawArrows(false); this.drawArrows(false);
} }
}; };