Skip to content

Commit

Permalink
Merge pull request musescore#18439 from alexpavlov96/dead_slapped_layout
Browse files Browse the repository at this point in the history
added dead slapped element to layout types
  • Loading branch information
alexpavlov96 committed Jul 7, 2023
2 parents 7e76cf5 + 3ee253f commit cd01c6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/engraving/layout/pal/tlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void TLayout::layoutItem(EngravingItem* item, LayoutContext& ctx)
{
bool found = LayoutVisitor::visit(LayoutTypes {}, item, ctx);
if (!found) {
LOGE() << "not found in lyaout types item: " << item->typeName();
LOGE() << "not found in layout types item: " << item->typeName();
DO_ASSERT(found);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/engraving/layout/v0/tlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ using LayoutTypes = rtti::TypeList<Accidental, ActionIcon, Ambitus, Arpeggio, Ar
BagpipeEmbellishment, BarLine, Beam, Bend, StretchedBend,
HBox, VBox, FBox, TBox, Bracket, Breath,
Chord, ChordLine, Clef, Capo,
Dynamic, Expression,
DeadSlapped, Dynamic, Expression,
Fermata, FiguredBass, Fingering, FretDiagram,
Glissando, GlissandoSegment, GradualTempoChange, GradualTempoChangeSegment,
Hairpin, HairpinSegment, HarpPedalDiagram, Harmony, HarmonicMarkSegment, Hook,
Expand Down Expand Up @@ -205,7 +205,7 @@ void TLayout::layoutItem(EngravingItem* item, LayoutContext& ctx)

bool found = LayoutVisitor::visit(LayoutTypes {}, item, ctx);
if (!found) {
LOGE() << "not found in lyaout types item: " << item->typeName();
LOGE() << "not found in layout types item: " << item->typeName();
DO_ASSERT(found);
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/engraving/libmscore/deadslapped.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ namespace mu::engraving {
class DeadSlapped : public EngravingItem
{
OBJECT_ALLOCATOR(engraving, DeadSlapped)
DECLARE_CLASSOF(ElementType::DEAD_SLAPPED)

public:

~DeadSlapped() {}
Expand Down

0 comments on commit cd01c6e

Please sign in to comment.