mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
[bug] fix bug 79892
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user