@@ -217,7 +217,11 @@ struct ShowAnchors {
217217 ShowAnchors () = default ;
218218 ShowAnchors (voice_idx_t vIdx, staff_idx_t stfIdx, const Fraction& sTickMain , const Fraction& eTickMain,
219219 const Fraction& sTickExt , const Fraction& eTickExt)
220- : voiceIdx(vIdx), staffIdx(stfIdx), startTickMainRegion(sTickMain ), endTickMainRegion(eTickMain),
220+ : voiceIdx(vIdx), staffIdx(stfIdx), endStaffIdx(stfIdx + 1 ), startTickMainRegion(sTickMain ), endTickMainRegion(eTickMain),
221+ startTickExtendedRegion (sTickExt ), endTickExtendedRegion(eTickExt) {}
222+ ShowAnchors (voice_idx_t vIdx, staff_idx_t stfIdx, staff_idx_t endStfIdx, const Fraction& sTickMain , const Fraction& eTickMain,
223+ const Fraction& sTickExt , const Fraction& eTickExt)
224+ : voiceIdx(vIdx), staffIdx(stfIdx), endStaffIdx(endStfIdx), startTickMainRegion(sTickMain ), endTickMainRegion(eTickMain),
221225 startTickExtendedRegion(sTickExt ), endTickExtendedRegion(eTickExt) {}
222226
223227 void reset ()
@@ -232,6 +236,7 @@ struct ShowAnchors {
232236
233237 voice_idx_t voiceIdx = muse::nidx;
234238 staff_idx_t staffIdx = muse::nidx;
239+ staff_idx_t endStaffIdx = muse::nidx;
235240 Fraction startTickMainRegion = Fraction(-1 , 1 );
236241 Fraction endTickMainRegion = Fraction(-1 , 1 );
237242 Fraction startTickExtendedRegion = Fraction(-1 , 1 );
@@ -536,6 +541,8 @@ class Score : public EngravingObject, public muse::Injectable
536541 void restoreInitialKeySigAndTimeSig ();
537542 void reconnectSlurs (MeasureBase* mbStart, MeasureBase* mbLast);
538543 void cmdDeleteSelection ();
544+ std::vector<ChordRest*> deleteRange (Segment* segStart, Segment* segEnd, track_idx_t trackStart, track_idx_t trackEnd,
545+ const SelectionFilter& filter);
539546 void cmdFullMeasureRest ();
540547
541548 muse::Ret putNote (const PointF&, bool replace, bool insert);
@@ -1099,8 +1106,6 @@ class Score : public EngravingObject, public muse::Injectable
10991106 const SelectionFilter& filter);
11001107 void deleteAnnotationsFromRange (Segment* segStart, Segment* segEnd, track_idx_t trackStart, track_idx_t trackEnd,
11011108 const SelectionFilter& filter);
1102- std::vector<ChordRest*> deleteRange (Segment* segStart, Segment* segEnd, track_idx_t trackStart, track_idx_t trackEnd,
1103- const SelectionFilter& filter);
11041109
11051110 void update (bool resetCmdState, bool layoutAllParts = false );
11061111
0 commit comments