Skip to content

Commit

Permalink
fixing hairpin and volta too
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Jun 24, 2016
1 parent 66b5cf7 commit 3c6284b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/cmd.cpp
Expand Up @@ -295,8 +295,8 @@ void Score::cmdAddSpanner(Spanner* spanner, int staffIdx, Segment* startSegment,
|| spanner->isNoteLine()
|| spanner->isOttavaSegment()
|| spanner->isPedal()
|| spanner->isHairpin()
|| spanner->isVolta()) {
|| spanner->isHairpinSegment()
|| spanner->isVoltaSegment()) {
// rebase text elements to score style
TextLine* tl = toTextLine(spanner);
TextStyleType st;
Expand Down
3 changes: 3 additions & 0 deletions libmscore/element.h
Expand Up @@ -95,6 +95,7 @@ class Accidental;
class TextLine;
class Pedal;
class NoteLine;
class VoltaSegment;

enum class SymId;

Expand Down Expand Up @@ -708,6 +709,7 @@ class Element : public QObject, public ScoreElement {
CONVERT(Pedal, PEDAL)
CONVERT(OttavaSegment, OTTAVA_SEGMENT)
CONVERT(NoteLine, NOTELINE)
CONVERT(VoltaSegment, VOLTA_SEGMENT)
#undef CONVERT
};

Expand Down Expand Up @@ -794,6 +796,7 @@ static inline const a* to##a(const Element* e) { Q_ASSERT(e == 0 || e->type() ==
CONVERT(Pedal, PEDAL)
CONVERT(OttavaSegment, OTTAVA_SEGMENT)
CONVERT(NoteLine, NOTELINE)
CONVERT(VoltaSegment, VOLTA_SEGMENT)
#undef CONVERT

//---------------------------------------------------------
Expand Down

0 comments on commit 3c6284b

Please sign in to comment.