Problem with changing start/end angle of ellipse part

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
User avatar
ErikTiePie
Posts: 92
Joined: Fri Nov 21, 2008 10:52 pm

Problem with changing start/end angle of ellipse part

Postby ErikTiePie » Fri Jan 09, 2009 10:54 pm

I draw a circle using :tool_ellipse: 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

User avatar
kelan
Posts: 178
Joined: Thu Sep 06, 2007 12:55 am
Location: Unicorn of Open Source
Contact:

Re: Problem with changing start/end angle of ellipse part

Postby kelan » Sat Jan 10, 2009 12:27 am

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.

User avatar
kelan
Posts: 178
Joined: Thu Sep 06, 2007 12:55 am
Location: Unicorn of Open Source
Contact:

Re: Problem with changing start/end angle of ellipse part

Postby kelan » Sat Jan 10, 2009 12:47 am


User avatar
ErikTiePie
Posts: 92
Joined: Fri Nov 21, 2008 10:52 pm

Re: Problem with changing start/end angle of ellipse part

Postby ErikTiePie » Mon Jan 12, 2009 5:36 pm

thanks


Return to “Discuss Software Issues”