skip zero-length slurs in layout#34000
Conversation
c854366 to
cf0fe29
Compare
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughIn 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsLinked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/engraving/rendering/score/slurtielayout.cpp`:
- Around line 85-89: Move the zero-tick check in SlurTieLayout::layout before
acquiring the segment from TLayout::getNextLayoutSystemSegment, since the
current early return can leave an existing slurSegment with stale type/geometry
from setSpannerSegmentType and layoutSegment. If the guard must remain after
acquisition, explicitly clear, reset, or remove the slurSegment before returning
so zero-length slurs are fully hidden on relayout.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 97451f97-4ba0-4f9e-889b-1f4f120603d3
📒 Files selected for processing (1)
src/engraving/rendering/score/slurtielayout.cpp
| item->track(), item->tick().ticks()); | ||
| return slurSegment; | ||
| } | ||
| if (item->endCR() == 0) { // sanity check |
There was a problem hiding this comment.
We should also return here: item->setTick2(item->tick()); will just create a zero length slur
cf0fe29 to
da06635
Compare
2bc79d3 to
7d56d71
Compare
7d56d71 to
3518160
Compare
No description provided.