Skip to content

Commit

Permalink
src/anki/ankiclient: make {pitch*} markers empty if no pitch info exists
Browse files Browse the repository at this point in the history
Closes #203
  • Loading branch information
ripose-jp committed Mar 10, 2024
1 parent ea9f6d3 commit b2217f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/anki/ankiclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1544,6 +1544,11 @@ void AnkiClient::buildPitchInfo(const QList<Pitch> &pitches,
QString &pitchGraph,
QString &pitchPosition)
{
if (pitches.isEmpty())
{
return;
}

pitch += "<span class=\"memento-pitch\">";
pitchGraph += "<span>";
pitchPosition += "<span>";
Expand Down

0 comments on commit b2217f4

Please sign in to comment.