Fix page locks ending on frames - #34505
Conversation
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/engraving/rendering/score/pagelayout.cpp (1)
259-259: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd a regression test for page locks ending at a vertical frame.
Verify that the page-lock boundary ends on the current page and does not include the following page.
🤖 Prompt for 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. In `@src/engraving/rendering/score/pagelayout.cpp` at line 259, Add a regression test covering a page lock that ends at a vertical frame, exercising the pagelayout flow around ctx.state().prevSystem()->last(). Assert that the lock boundary remains on the current page and does not include the subsequent page.
🤖 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.
Nitpick comments:
In `@src/engraving/rendering/score/pagelayout.cpp`:
- Line 259: Add a regression test covering a page lock that ends at a vertical
frame, exercising the pagelayout flow around ctx.state().prevSystem()->last().
Assert that the lock boundary remains on the current page and does not include
the subsequent page.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: e0db6ae4-e50a-4361-b073-22adb3db9373
📒 Files selected for processing (3)
src/engraving/dom/system.cppsrc/engraving/rendering/score/pagelayout.cppvtest/scores/page-locks-1.mscz
📝 WalkthroughWalkthroughPage-lock processing now scans the page-lock indicator before the vbox early return. Page-layout collection now uses the previous system’s final 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
Resolves: #34490
The changes in
pagelayout.cppfix the linked issue, the changes insystem.cppmake sure the page lock indicator gets drawn when the system is a VBox.