Skip to content

Commit

Permalink
Merge pull request #3643 from lasconic/fix-271707
Browse files Browse the repository at this point in the history
fix #271707: MusicXML export: crash when exporting hairpins
  • Loading branch information
lasconic committed Apr 26, 2018
2 parents 00c1d41 + c9b78c4 commit 29e2c79
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mscore/exportxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,11 @@ static QString addPositioningAttributes(Element const* const el, bool isSpanStar
float relativeY = 0;
float spatium = el->spatium();

if (SLine const* const span = dynamic_cast<SLine const* const>(el)) {
const SLine* span = nullptr;
if (el->isSLine())
span = static_cast<const SLine*>(el);

if (span && !span->spannerSegments().isEmpty()) {
if (isSpanStart) {
const auto seg = span->spannerSegments().first();
const auto userOff = seg->userOff();
Expand Down

0 comments on commit 29e2c79

Please sign in to comment.