Skip to content

Commit 01cf660

Browse files
committed
Fix dragging around mmrests
1 parent b4864ce commit 01cf660

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/engraving/dom/measure.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,6 +2800,9 @@ Segment* Measure::searchSegment(double x, SegmentType st, track_idx_t strack, tr
28002800
if (!segment->hasElements(strack, lastTrack)) {
28012801
continue;
28022802
}
2803+
if (segment->isTimeTickType() && segment->rtick() == ticks()) {
2804+
continue;
2805+
}
28032806
Segment* ns = segment->next(st);
28042807
for (; ns; ns = ns->next(st)) {
28052808
if (ns->hasElements(strack, lastTrack)) {

src/engraving/dom/score.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ Measure* Score::searchMeasure(const PointF& p, const System* preferredSystem, do
11321132
for (System* system : systems) {
11331133
double x = p.x() - system->canvasPos().x();
11341134
for (MeasureBase* mb : system->measures()) {
1135-
if (mb->isMeasure() && (x < (mb->x() + mb->ldata()->bbox().width()))) {
1135+
if (mb->isMeasure() && !toMeasure(mb)->isMMRest() && (x < (mb->x() + mb->ldata()->bbox().width()))) {
11361136
return toMeasure(mb);
11371137
}
11381138
}

0 commit comments

Comments
 (0)