svgedit
svgedit copied to clipboard
Path and line tool stuck disabled if selecting shape
Describe the bug Selecting a shape with stroke color of none (no opacity or color in SVG) leaves the line and path tool disabled. It's not obvious to the user how to reenable them. However, selecting a similarly looking shape with a stroke color and opacity of 0 leaves the tools enabled. The tools already know to change the width to 1 if it's currently zero.
To Reproduce
- Use the "polygon" extension to draw pentagon. It should have a 5pt stroke.
- Set the stroke color to none. The stroke should have an opacity of 0 now.
- Click (not click and drag) anywhere. This will not result in a viewable shape. However, the line and path tools are now disabled.
- Click and drag a new pentagon (or any other shape) of the same size as the first one.
- The only way to get the line and path tools back is to select the first shape or manually change the stroke color to something.
Expected behavior When the width is zero or the opacity is set in the svg, the tools are enabled. In fact, they default the width back to 1 when selected. This is not the case here leaving the user wondering confused. The shapes look identical but behave differently.
SVG-Edit environment (IMPORTANT) db06248 on Dec 26, 2018
Desktop (please complete the following information):
- OS: iOS
- Browser chrome
- Version latest
Trying to replicate... Exactly how are you setting the stroke color to none?
Thanks for responding. By selecting the red X in the color picker.
By manually changing the stroke color in step 5, do you mean through the source view? Which attribute?
No use of the source viewer needed. I meant going to the stroke color picker again and selecting a color.
Manually changing the stroke color (in Chrome or Firefox) in step 5 doesn't help remedy the situation, but clicking on the original shape kind of does.
And I can replicate with as little as your step 1 and 3 alone.
This is also affecting other tools like the star tool and I believe it happened for me with the circle tool once.
And as far back as 2.8 at least: https://svg-edit.github.io/svgedit/releases/svg-edit-2.8/svg-editor.html ...