Skip to content

Fix C++ exception error in Significance 'make style from act. line' stuff function.#30

Open
moex3 wants to merge 2 commits intounanimated:masterfrom
moex3:significance_make_style_fix
Open

Fix C++ exception error in Significance 'make style from act. line' stuff function.#30
moex3 wants to merge 2 commits intounanimated:masterfrom
moex3:significance_make_style_fix

Conversation

@moex3
Copy link
Copy Markdown

@moex3 moex3 commented Mar 20, 2026

Aegisub version: Aegisub 9676-migration02-168b6f679

Example line:
Dialogue: 0,0:02:00.60,0:02:00.64,Default,,0,0,0,,{\b1}test

When trying to make a new style from this line using Significance, it fails with:
Lua reported a runtime error: C++ exception

Changing the line insertion code to subs[-i] = sr in line 816, reveals another error message:
Invalid or missing field 'bold' in 'style' class subtitle line (expected boolean)

Something must have changed, and now Aegisub expects those boolean fields to actually be boolean type. I fixed it by converting those 4 boolean types to an actual boolean typed value.
I also fixed the margins, because it never used the margins from the style even if the margins on the lines were left 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant