Skip to content

Commit

Permalink
Additional changes needed after rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacWeiss committed Nov 22, 2020
1 parent 129daed commit 0777643
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
4 changes: 2 additions & 2 deletions libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ void Measure::setScore(Score* score)

MStaff* Measure::mstaff(int staffIndex) const
{
if (staffIndex >= 0 && staffIndex < static_cast<int>(_mstaves.size())) {
return _mstaves[staffIndex];
if (staffIndex >= 0 && staffIndex < static_cast<int>(m_mstaves.size())) {
return m_mstaves[staffIndex];
}

return nullptr;
Expand Down
21 changes: 10 additions & 11 deletions libmscore/measure.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,14 @@ class Measure final : public MeasureBase

System* system() const { return toSystem(parent()); }
bool hasVoices(int staffIdx, Fraction stick, Fraction len) const;
bool hasVoices(int staffIdx) const { return m_mstaves[staffIdx]->hasVoices(); }
void setHasVoices(int staffIdx, bool v) { return m_mstaves[staffIdx]->setHasVoices(v); }

StaffLines* staffLines(int staffIdx) { return m_mstaves[staffIdx]->lines(); }

Spacer* vspacerDown(int staffIdx) const { return m_mstaves[staffIdx]->vspacerDown(); }
Spacer* vspacerUp(int staffIdx) const { return m_mstaves[staffIdx]->vspacerUp(); }
void setStaffVisible(int staffIdx, bool visible) { m_mstaves[staffIdx]->setVisible(visible); }
void setStaffStemless(int staffIdx, bool stemless) { m_mstaves[staffIdx]->setStemless(stemless); }
bool hasVoices(int staffIdx) const;
void setHasVoices(int staffIdx, bool v);

StaffLines* staffLines(int staffIdx);
Spacer* vspacerDown(int staffIdx) const;
Spacer* vspacerUp(int staffIdx) const;
void setStaffVisible(int staffIdx, bool visible);
void setStaffStemless(int staffIdx, bool stemless);
#ifndef NDEBUG
bool corrupted(int staffIdx) const { return m_mstaves[staffIdx]->corrupted(); }
void setCorrupted(int staffIdx, bool val) { m_mstaves[staffIdx]->setCorrupted(val); }
Expand Down Expand Up @@ -329,9 +328,9 @@ class Measure final : public MeasureBase
void computeMinWidth(Segment* s, qreal x, bool isSystemHeader);

void readVoice(XmlReader& e, int staffIdx, bool irregular);

MStaff* mstaff(int staffIndex) const;

std::vector<MStaff*> m_mstaves;
SegmentList m_segments;
Measure* m_mmRest; // multi measure rest which replaces a measure range
Expand Down
4 changes: 2 additions & 2 deletions mu4/notation/internal/notationinteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ bool NotationInteraction::isDropAccepted(const QPointF& pos, Qt::KeyboardModifie
case ElementType::INSTRUMENT_CHANGE:
case ElementType::REHEARSAL_MARK:
case ElementType::JUMP:
case ElementType::REPEAT_MEASURE:
case ElementType::MEASURE_REPEAT:
case ElementType::ICON:
case ElementType::CHORD:
case ElementType::SPACER:
Expand Down Expand Up @@ -951,7 +951,7 @@ bool NotationInteraction::drop(const QPointF& pos, Qt::KeyboardModifiers modifie
case ElementType::INSTRUMENT_CHANGE:
case ElementType::REHEARSAL_MARK:
case ElementType::JUMP:
case ElementType::REPEAT_MEASURE:
case ElementType::MEASURE_REPEAT:
case ElementType::ICON:
case ElementType::NOTE:
case ElementType::CHORD:
Expand Down
2 changes: 1 addition & 1 deletion mu4/notation/view/widgets/measureproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "libmscore/measure.h"
#include "libmscore/sig.h"
#include "libmscore/score.h"
#include "libmscore/repeat.h"
#include "libmscore/measurerepeat.h"
#include "libmscore/undo.h"
#include "libmscore/range.h"
#include "notation/inotationelements.h"
Expand Down

0 comments on commit 0777643

Please sign in to comment.