Skip to content

Commit 43b465d

Browse files
authored
Merge pull request gregorio-project#1594 from eschwab/fix-1585
Fix segfault for first syllables of one letter with a style. RE: Issue gregorio-project#1585
2 parents 73eb63d + c70aa1a commit 43b465d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
66
### Fixed
77
- Fixed the interaction between hyphens and styles. See [#1538](https://github.com/gregorio-project/gregorio/issues/1538).
88
- Fixed the loss of ongoing styles when a syllable starts with a forced center. See [#1551](https://github.com/gregorio-project/gregorio/issues/1551).
9+
- Fixed first syllables of one letter with a style causing a segfault. See [#1585](https://github.com/gregorio-project/gregorio/issues/1585).
910

1011
### Added
1112
- Added a configurable setting `\gresetunisonbreakbehavior` to control automatic line breaks between unison notes above a syllable. Defaults to `breakable` for backwards compatibility, but may be set to `unbreakable` if that behavior is desired. See [#1504](https://github.com/gregorio-project/gregorio/issues/1504).

src/characters.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,8 @@ void gregorio_rebuild_first_syllable(gregorio_character **param_character,
12091209
break;
12101210
}
12111211
if (current_character->is_character) {
1212-
if (separate_initial && current_character->previous_character) {
1212+
if (separate_initial && current_character->previous_character
1213+
&& current_character->next_character) {
12131214
/* we need to move the initial to the front */
12141215
current_character->previous_character->next_character =
12151216
current_character->next_character;

0 commit comments

Comments
 (0)