Skip to content

Commit

Permalink
fix #25368: Note Groups define in time signature dialog has no effect…
Browse files Browse the repository at this point in the history
… in note entry
  • Loading branch information
lasconic committed Jul 22, 2014
1 parent c4f4dd1 commit d90b918
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libmscore/staff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ const Groups& Staff::group(int tick) const

void Staff::addTimeSig(TimeSig* timesig)
{
timesigs[timesig->segment()->tick()] = timesig;
if (timesig->segment()->segmentType() == Segment::Type::TimeSig)
timesigs[timesig->segment()->tick()] = timesig;
}

//---------------------------------------------------------
Expand All @@ -291,7 +292,8 @@ void Staff::addTimeSig(TimeSig* timesig)

void Staff::removeTimeSig(TimeSig* timesig)
{
timesigs.erase(timesig->segment()->tick());
if (timesig->segment()->segmentType() == Segment::Type::TimeSig)
timesigs.erase(timesig->segment()->tick());
}

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

0 comments on commit d90b918

Please sign in to comment.