Skip to content

Commit b2dfbe5

Browse files
committed
Prevent crash with accid without @accid and not in note
* Test suite evaluated locally
1 parent e9821bd commit b2dfbe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/calcledgerlinesfunctor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CalcLedgerLinesFunctor::CalcLedgerLinesFunctor(Doc *doc) : DocFunctor(doc) {}
2424

2525
FunctorCode CalcLedgerLinesFunctor::VisitAccid(Accid *accid)
2626
{
27-
if (accid->GetFirstAncestor(NOTE)) {
27+
if (accid->GetFirstAncestor(NOTE) || !accid->HasAccid()) {
2828
return FUNCTOR_SIBLINGS;
2929
}
3030

0 commit comments

Comments
 (0)