Group selections move wildly when flipped horizontally with SVG2 flowed texts
Split out from inbox#3164 (moved), /cc @datalot
Steps to reproduce:
Instead of creating all these objects, you can also just use inkscape-flip.svg, select all and flip horizontally in 1.0.x
- Open Inkscape
- Pan the canvas way to the right of the page (e.g. around x=3000 for the default mm page)
- Draw a path (you can draw a rectangle, then convert to path). Note it doesn't happen with just a rectangle.
- Create some text (SVG2 autoflowed or SVG 1.1)
- Flow text into the path (Text > Flow into Frame)
- If you're in 1.1-dev (instead of 1.0.x), disable Preferences > Tools > Text > Use SVG2 autoflowed text
- Flip selected objects horizontally.
What happened?
Flips will increase the bounding box and displace all the objects. To be clear, it moves the selecting across from the right to the left side of the canvas.
Eventually it stabilizes when the text is around the y-axis (i.e. x=0)
Adding more items to the selection adds more objects that fly around
What should have happened?
- bounding box of flipped objects remains the same size and position
Sample files:
Small example file: inkscape-flip.svg
Gif from original issue showing the movement:
Version Info:
- Inkscape 1.0 (4035a4fb, 2020-05-01) from MX Linux 19.2 x64 Repositories`
- Inkscape 1.1-dev (cc619caa, 2020-09-10) Linux Mint 20
- Inkscape 1.0.1 (273a26d9, 2020-09-10) Linux Mint 20
- Inkscape 1.0alpha (9dee831c, 2019-01-15) appimage Linux Mint 20
Note: reminder that in 1.1-dev, it doesn't occur unless SVG2 text is disabled. The partial fix introduced in 78f304d7
commit 78f304d74e0ff6888b8e07e5b7a2e4431c87e35e
Author: Thomas Holder <thomas@thomas-holder.de>
Date: Thu Apr 30 20:52:35 2020 +0200
Text `shape-inside` consistent transform behavior
Don't treat rectangles different from other shapes. Never optimize text
transform if `shape-inside` is set.
Edit: moving as confirmed by me, reported by datalot
Edited by Nathan Lee