Fix big regression with symbols not using PositionReference

This commit is contained in:
Eric NGUYEN 2022-10-04 17:55:29 +02:00
parent 1086bf58a1
commit 86c34b112e
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ export function AddSymbol(
const newSymbols = structuredClone(current.symbols);
const newSymbol: ISymbolModel = GetDefaultSymbolModel(name, newCounters, type, symbolConfig);
newSymbol.x = RestoreX(newSymbol.x, newSymbol.width, newSymbol.config.XPositionReference);
newSymbol.x = RestoreX(newSymbol.x, newSymbol.width, newSymbol.config.PositionReference);
newSymbols.set(newSymbol.id, newSymbol);