Snap of rotation center stops being activable
Migrated from: https://bugs.launchpad.net/inkscape/+bug/1473306 and https://bugs.launchpad.net/inkscape/+bug/1473306
Steps to reproduce:
- open Inkscape
- new document, default template, "Snap an item's rotation center" is not activated;
- draw a rectangle and a line: verify that the rotation center of the rectangle doesn't snap to the line's edges;
- activate the button for "Snap an item's rotation center" and verify that the rotation center of the rectangle now snaps to the line's edges;
- deactivate the main button for the group "Snap other points (center, guide origins, gradient handles, etc.)", DON'T DO ANYTHING MORE, and reactivate it: verify that when deactivating, all buttons in the group are grayed out and when reactivating they all go back to their previous states (the button for "Snap an item's rotation center" too);
- now deactivate the group button again as before, but before reactivating it, drag the rectangle and do some snap (e.g. snap a rectangle corner to a line edge): the rotation center will not snap;
- then reactivate the group button
What happened?
The "Snap an item's rotation center" button is not reactivated and you can't reactivate it anymore; or better, you can activate it but the snapping won't work and as soon as you change something else in the snapping toolbar (e.g. the text baseline snapping button) it will update to its real deactivated state. It's impossible to reactivate it.
What should have happened?
I should be able to reactivate Rotation Center snapping.
The problem isn't triggered by changing single buttons, nor by the main snapping enable/disable button (but in the latter case it could be because you can't have intermediate snappings between deactivating and reactivating it so the steps can't be reproduced).
One way I've found so far to exit from this broken situation is saving the document and reopening it. Another way, as reported by ~suv in comment 3, to 'reset' the snap option "Snap an item's rotation center" is to
- open 'Edit > XML Editor'
- select <sodipodi:namedview ...> in the node list on the left
- delete namedview's attribute 'inkscape:snap-center' After this, the snap setting "Snap an item's rotation center" can be reactivated in the snap controls bar, and works again as expected.
Inkscape Version and Operating System:
- Inkscape Version: 1.1-dev (c990a67c, 2020-04-09)
- Operating System: Windows 10
- Operating System version: 10.0.18362
Migration info
Reproduced since
- r10795
https://bugs.launchpad.net/inkscape/+bug/1473306 contains poorly reproducible (missing steps), but possibly related issues. In all cases, a snapping button deactivates when another is activated.
Im running version 0.91 on windows 7
When I try to hover over a path intersection of either 2 lines or 2 circles turned into paths, the button on top of the tool bar that says "snap to path intersection" turns off. I click it to turn it on and nothing happens. when i switch, for example, from the bezier tool to the select tool and vice versa, it turns off. it's like its off no matter what i do.
Maybe related (Linux Mint 17.3):
When I activate all buttons in that section of the snapping tool, I need to activate the 'snap to path intersection' button last, because clicking on any of the others will deactivate it.
It seems to make sense to deactivate 'snapping to paths' if you have 'snapping to path intersection' activated, but the other snap targets wouldn't interfere as much, I think.
Probably, some snapping logic is broken.