diff --git a/src/importer/AlphaTexImporter.ts b/src/importer/AlphaTexImporter.ts index 8cafdbc6b..6600251a8 100644 --- a/src/importer/AlphaTexImporter.ts +++ b/src/importer/AlphaTexImporter.ts @@ -3026,6 +3026,7 @@ export class AlphaTexImporter extends ScoreImporter { } master.displayScale = this._syData as number; + bar.displayScale = this._syData as number; this._sy = this.newSy(); } else if (syData === 'width') { this._sy = this.newSy(); @@ -3035,6 +3036,7 @@ export class AlphaTexImporter extends ScoreImporter { } master.displayWidth = this._syData as number; + bar.displayWidth = this._syData as number; this._sy = this.newSy(); } else { if (bar.index === 0) { diff --git a/test-data/visual-tests/layout/system-layout-tex.png b/test-data/visual-tests/layout/system-layout-tex.png new file mode 100644 index 000000000..29b2d1465 Binary files /dev/null and b/test-data/visual-tests/layout/system-layout-tex.png differ diff --git a/test/visualTests/features/Layout.test.ts b/test/visualTests/features/Layout.test.ts index a4ac6b6d5..712b813f6 100644 --- a/test/visualTests/features/Layout.test.ts +++ b/test/visualTests/features/Layout.test.ts @@ -113,4 +113,15 @@ describe('LayoutTests', () => { settings.display.systemsLayoutMode = SystemsLayoutMode.UseModelLayout; await VisualTestHelper.runVisualTest('layout/track-names-all-systems-multi.gp', settings, [0, 1]); }); + + it('system-layout-tex', async () => { + const settings: Settings = new Settings(); + settings.display.systemsLayoutMode = SystemsLayoutMode.UseModelLayout; + await VisualTestHelper.runVisualTestTex(` + \\track { defaultSystemsLayout 3 } + \\scale 0.25 :1 c4 | \\scale 0.5 c4 | \\scale 0.25 c4 | + \\scale 0.5 c4 | \\scale 2 c4 | \\scale 0.5 c4 | + c4 | c4 + `, 'layout/system-layout-tex.png', settings); + }); });