Skip to content

Commit

Permalink
Manually merged musescore#6351 to master
Browse files Browse the repository at this point in the history
  • Loading branch information
anatoly-os committed Aug 26, 2020
1 parent 63696c5 commit e78d19e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libmscore/chordlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,7 @@ void ChordList::write(XmlWriter& xml) const
writeRenderList(xml, &renderListRoot, "renderRoot");
}
if (!renderListFunction.empty()) {
writeRenderList(xml, &renderListRoot, "renderFunction");
writeRenderList(xml, &renderListFunction, "renderFunction");
}
if (!renderListBase.empty()) {
writeRenderList(xml, &renderListBase, "renderBase");
Expand Down
1 change: 1 addition & 0 deletions libmscore/harmony.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,7 @@ const RealizedHarmony& Harmony::getRealizedHarmony() const
}

//Adjust for Nashville Notation, might be temporary
// TODO: set dirty on add/remove of keysig
if (_harmonyType == HarmonyType::NASHVILLE && !_realizedHarmony.valid()) {
Key key = staff()->key(tick());
//parse root
Expand Down
4 changes: 3 additions & 1 deletion libmscore/realizedharmony.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ void RealizedHarmony::update(int rootTpc, int bassTpc, int transposeOffset /*= 0
return;
}

_notes = generateNotes(rootTpc, bassTpc, _literal, _voicing, transposeOffset);
if (tpcIsValid(rootTpc)) {
_notes = generateNotes(rootTpc, bassTpc, _literal, _voicing, transposeOffset);
}
_dirty = false;
}

Expand Down
1 change: 1 addition & 0 deletions share/styles/chords_jazz.xml
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@
</token>

<renderRoot>:n :a </renderRoot>
<renderFunction>:a :n</renderFunction>
<renderBase>/ m:0:1 :n :a m:0:-1</renderBase>

<!--
Expand Down

0 comments on commit e78d19e

Please sign in to comment.