diff --git a/src/shapes/TextPath.ts b/src/shapes/TextPath.ts index ae2eaf60..cfd645a1 100644 --- a/src/shapes/TextPath.ts +++ b/src/shapes/TextPath.ts @@ -306,7 +306,7 @@ export class TextPath extends Shape { } } - if (pathCmd === {} || p0 === undefined) { + if (Object.keys(pathCmd).length === 0 || p0 === undefined) { return undefined; }