When a picture is embedded into a document, it can't be scaled to be larger than the page is (which is expected). However, once it is rotated by 90° or 270°, it can't be scaled to be larger so that when rotated back it wouldn't fit anymore.
Steps to Reproduce:
1. Embed a portrait image into a landscape page (or the other way round).
2. Rotate image by 90°.
3. Try to scale image up.
Image jumps to first page and remains at a certain maximum scaling.
Image should scale correctly.
User Profile Reset: Yes
Build ID: 6.1.5-2
CPU threads: 6; OS: Linux 4.20; UI render: default; VCL: gtk3;
Locale: en-US (en_US.utf8); Calc: group threaded
Created attachment 150483 [details]
Issue demonstration. Try to scale these colorful boxes
Likely the same root cause as bug 115934.