Skip to content

Commit

Permalink
and and use isNoteLine()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Jun 24, 2016
1 parent 625eca0 commit 970799e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/cmd.cpp
Expand Up @@ -292,7 +292,7 @@ void Score::cmdAddSpanner(Spanner* spanner, int staffIdx, Segment* startSegment,
tick2 = endSegment->tick();
spanner->setTick2(tick2);
if (spanner->isTextLine()
|| spanner->type() == Element::Type::NOTELINE
|| spanner->isNoteLine()
|| spanner->isOttavaSegment()
|| spanner->isPedal()
|| spanner->isHairpin()
Expand Down
3 changes: 3 additions & 0 deletions libmscore/element.h
Expand Up @@ -94,6 +94,7 @@ class DurationElement;
class Accidental;
class TextLine;
class Pedal;
class NoteLine;

enum class SymId;

Expand Down Expand Up @@ -706,6 +707,7 @@ class Element : public QObject, public ScoreElement {
CONVERT(TextLine, TEXTLINE)
CONVERT(Pedal, PEDAL)
CONVERT(OttavaSegment, OTTAVA_SEGMENT)
CONVERT(NoteLine, NOTELINE)
#undef CONVERT
};

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

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

0 comments on commit 970799e

Please sign in to comment.