Skip to content

Commit

Permalink
Implementation for issue humdrum-tools/verovio-humdrum-viewer#863
Browse files Browse the repository at this point in the history
  • Loading branch information
craigsapp committed Oct 25, 2023
1 parent eaf9dfb commit 9925244
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/iohumdrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18025,11 +18025,24 @@ hum::HTp HumdrumInput::getHairpinEnd(hum::HTp token, const std::string &endchar)
if (token == NULL) {
return NULL;
}
int subtrack = token->getSubtrack();
if (subtrack == 0) {
subtrack = 1;
}
token = token->getNextNonNullDataToken();
int badtoken = 0;
while (token != NULL) {
if (token->find(endchar) != std::string::npos) {
return token;
int esubtrack = token->getSubtrack();
if (esubtrack == 0) {
esubtrack = 1;
}
if (subtrack == esubtrack) {
return token;
}
else {
return NULL;
}
}
badtoken = 0;
for (int i = 0; i < (int)token->size(); ++i) {
Expand Down

0 comments on commit 9925244

Please sign in to comment.