Image capture: "Auto-resize to page" misbehaves
Reported version
3.5
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project
"Auto-resize to page" does not correctly adjust the selection rectangle to fit the page if one moves the selection rectangle before clicking "Auto-resize to page".
I've attached a sample score though I suspect the issue reproduces with any score.
At least MuseScore 3.5 and 3.6 public beta are affected.
Correct selection:
Glitchy selection:
Attachment | Size |
---|---|
test.mscz | 6.87 KB |
Comments
See also #305451: Image capture selection moves out of sight. I see this issue sometimes, not other times, using any recent release. I suspect it's all somehow connected but am not sure how. But somehow, manually moving the region seems connected, after that it seems the auto-resize doesn't respond correctly until you reload the score.
Came across this and fixed while implementing some other stuff on local build. If anyone is doing personal builds and for some reason finds this important, the fix is to add
_foto->setOffset(0, 0); to the first line within the if block:
else if (cmd == "resizePage") {
_foto->setOffset(0, 0);
in fotomode.cpp around line 4xx. 3.x branch is blocked of updates, so won't do any PR until after 4.x is implemented with Screen capability if need be.
Added it to PR #9000 (for 3.x)