[bug] fix bug 79892

This commit is contained in:
Sergey Luzyanin
2026-02-06 21:39:50 +03:00
parent ae5a10e912
commit 5284a3d55d

View File

@ -21604,11 +21604,14 @@
*/
ApiStroke.prototype.GetDashType = function()
{
if (this.Ln && this.Ln.prstDash !== null && this.Ln.prstDash !== undefined)
if (this.Ln)
{
// Convert numeric code to string value using GetDashByCode
var dashString = this.Ln.GetDashByCode ? this.Ln.GetDashByCode(this.Ln.prstDash) : null;
return dashString;
if (this.Ln.prstDash !== null && this.Ln.prstDash !== undefined)
{
let dashString = this.Ln.GetDashByCode ? this.Ln.GetDashByCode(this.Ln.prstDash) : null;
return dashString || "solid";
}
return "solid";
}
return null;
};