[solved] Rounded coordinates / snap

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.
Carrozza
Posts: 29
Joined: Thu Jul 10, 2008 2:18 am

[solved] Rounded coordinates / snap

Postby Carrozza » Tue Aug 05, 2008 4:20 pm

Hi, I'm using Inkscape to make interfaces with very small elements.
I do find myself putting a lot of time and effort to produce "pixel-perfect" graphics.
What I do find wrong with Inkscape is that it shifts and scale graphics to non even values without apparent reason.
See this very simple example:

Image

Image

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Rounded coordinates / snap

Postby microUgly » Tue Aug 05, 2008 6:28 pm

I can't reproduce that.

So you start with an ellipse shown in the first frame. Then you do nothing else but type "127" into height field. After you press enter the Y value changes and so does the H value?

Carrozza
Posts: 29
Joined: Thu Jul 10, 2008 2:18 am

Re: Rounded coordinates / snap

Postby Carrozza » Tue Aug 05, 2008 9:57 pm

Exactly!
This happens almost constantly, so I have to correct various coordinates each time I made a change.
I don't know if matters, but I'm using development builds.

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Rounded coordinates / snap

Postby prkos » Wed Aug 06, 2008 3:22 am

just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

Carrozza
Posts: 29
Joined: Thu Jul 10, 2008 2:18 am

Re: Rounded coordinates / snap

Postby Carrozza » Wed Aug 06, 2008 4:48 am



Yep, this seems the case. I hope they will squish it up soon, it's annoying.

dvlierop
Posts: 139
Joined: Sat Sep 08, 2007 4:25 am

Re: Rounded coordinates / snap

Postby dvlierop » Wed Aug 06, 2008 7:37 am

That bug is about very small rounding errors; the errors you see are in fact quite large. Are you using a stroke? I cannot judge this for sure from your picture, because it could have the same color as the fill. Please remove this stroke.

Next, on the tools tab in the preferences, select "visual bounding box" if it hasn't already been selected. If I'm correct, the values you enter are for either for the visual or geometric bounding box, depending on what you've selected in the preferences. After entering those values though, it will always display the dimension of the visual bounding box, regardless of the bounding box setting.

Regards,

Diederik

Carrozza
Posts: 29
Joined: Thu Jul 10, 2008 2:18 am

Re: Rounded coordinates / snap

Postby Carrozza » Wed Aug 06, 2008 4:12 pm

Raising Numeric Precision seems to solve the problem, or at least minimize it.
I must say that I did lower that value to 4 and -4 hoping that this would help rounding coordinates to "friendly" numbers.
I was completely wrong.

Image


Return to “Discuss Software Issues”