I draw a circle using with Ctrl pressed.
Next I go to the toolbar and I enter values in the edit boxes for Start and End:
- Start : 0.000
- End : 40.000
Inkscape now draws a "pie", with an angle of 40 degrees.
I then want to "rotate" the pie, by changing the start and end angles.
First I enter "40" in the Start edit box.
Then I enter "80" in the End edit box.
When I press Enter, the "pie" is redrawn, but, instead of "rotating", it has become wider, twice as wide in fact, running from 0 to 80 degrees, while the edit boxes show 40.000 and 80.000.
When I now enter a different value in "Start", e.g. 30, the pie is redrawn again, now with correct properties.
Am I doing something wrong, or is this a bug in ink scape? I could not find anything related in Launchpad.
My system:
Windows XP Professional, SP3
Inkscape 0.46, built April 1, 2008
Problem with changing start/end angle of ellipse part
- ErikTiePie
- Posts: 92
- Joined: Fri Nov 21, 2008 10:52 pm
Re: Problem with changing start/end angle of ellipse part
This is kind of a weird bug, but I'll try to explain it.
First you draw the circle and put in a Start of 0 and End of 40. That works fine.
However, when you go to "rotate" it and put 40 in for Start, Inkscape does something you don't expect. At that moment, both Start and End have 40. When both values are the same, Inkscape "forgets" their value, because it isn't needed. When they're the same, you have a full circle, so there's no need to keep track of them. You can see it happen if you open the XML Editor with the circle selected. When both are set to the same value, you can see the "sodipodi:start" and "sodipodi:end" attributes disappear.
Now here's where the bug comes in. When you enter 80 for the End, Inkscape makes that the End value, but since it forgot the Start value, it uses 0 for Start. It doesn't check Start box and see that there is still a non-zero value entered there, it just uses 0.
However, you can't just retype 40 for Start, because Inkscape only acts on that value when it changes. And since it's already 40, typing 40 again doesn't change it, so Inkscape doesn't react. You can work around this by pressing Up then Down on the little arrows next to it. That will change it to 41 then back to 40, so Inkscape will see the change and fix the pie wedge angle.
I'll enter a bug report for this bug so it will get fixed eventually.
First you draw the circle and put in a Start of 0 and End of 40. That works fine.
However, when you go to "rotate" it and put 40 in for Start, Inkscape does something you don't expect. At that moment, both Start and End have 40. When both values are the same, Inkscape "forgets" their value, because it isn't needed. When they're the same, you have a full circle, so there's no need to keep track of them. You can see it happen if you open the XML Editor with the circle selected. When both are set to the same value, you can see the "sodipodi:start" and "sodipodi:end" attributes disappear.
Now here's where the bug comes in. When you enter 80 for the End, Inkscape makes that the End value, but since it forgot the Start value, it uses 0 for Start. It doesn't check Start box and see that there is still a non-zero value entered there, it just uses 0.
However, you can't just retype 40 for Start, because Inkscape only acts on that value when it changes. And since it's already 40, typing 40 again doesn't change it, so Inkscape doesn't react. You can work around this by pressing Up then Down on the little arrows next to it. That will change it to 41 then back to 40, so Inkscape will see the change and fix the pie wedge angle.
I'll enter a bug report for this bug so it will get fixed eventually.
- ErikTiePie
- Posts: 92
- Joined: Fri Nov 21, 2008 10:52 pm