Restore textAlign property (#1374)
This commit is contained in:
parent
f7e3ee2064
commit
b971737d32
@ -57,8 +57,10 @@ export function restore(
|
|||||||
element.points = points;
|
element.points = points;
|
||||||
} else {
|
} else {
|
||||||
if (isTextElement(element)) {
|
if (isTextElement(element)) {
|
||||||
|
if (!element.textAlign) {
|
||||||
element.textAlign = DEFAULT_TEXT_ALIGN;
|
element.textAlign = DEFAULT_TEXT_ALIGN;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
normalizeDimensions(element);
|
normalizeDimensions(element);
|
||||||
// old spec, where non-linear elements used to have empty points arrays
|
// old spec, where non-linear elements used to have empty points arrays
|
||||||
|
Loading…
x
Reference in New Issue
Block a user