Inkscape adding X number of pixels to vertical coordinates (diff coordinate systems on diff layers)

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.
gk01
Posts: 4
Joined: Sun Feb 05, 2017 12:39 pm

Inkscape adding X number of pixels to vertical coordinates (diff coordinate systems on diff layers)

Postby gk01 » Thu Mar 23, 2017 11:29 am

For whatever reason, out of the blue and all of a sudden Inkscape randomly started adding 57.5 pixels to vertical coordinates. Below is a screenshot.

Image

Since the line is placed in the corner of the document one would expect the coordinates to be:

M 2, 2 H 13


and not

M 2, 58.5 H 13


but obviously this is not the case. Below is what it ends up looking like in the browser.

Image

I've tried creating a new document, but the anomaly persists.

I've never experienced any issues like this before, so I would be incredibly grateful if somebody knows and or can explain what's causing this unusual behaviour.
Last edited by gk01 on Thu Mar 23, 2017 6:21 pm, edited 1 time in total.

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Inkscape adding X number of pixels to vertical coordinates

Postby druban » Thu Mar 23, 2017 2:33 pm

It would be sooo useful to have the svg file. Without it only vague guesses are possible
Your mind is what you think it is.

gk01
Posts: 4
Joined: Sun Feb 05, 2017 12:39 pm

Re: Inkscape adding X number of pixels to vertical coordinates

Postby gk01 » Thu Mar 23, 2017 2:54 pm

druban wrote:It would be sooo useful to have the svg file. Without it only vague guesses are possible


OMFG "file too large" and there's literally 2 layers, each with a single line on them...

(i got the coordinates working fine on one layer, but it's basically using different coordinate systems for different layers. how is that even possible?)
Attachments
example.svg
(2.65 KiB) Downloaded 260 times

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Inkscape adding X number of pixels to vertical coordinates (diff coordinate systems on diff layers)

Postby tylerdurden » Thu Mar 23, 2017 7:57 pm

There is a transform applied to the "rougue" layer. It has been moved. Just like an object or group can be moved/scaled/etc., so can a layer, because layers are groups.

If the layer is selected in the XML editor, the layer can be moved. Subsequent placement of objects will show their location in the xml with coordinates relative to the layer.

Note in my example, the object coordinates of the rectangle objects are identical, but they have different locations in the page. "Layer 1 Copy" has been moved, by selecting it in the XML editor and dragging on the selected layer contents.
Attachments
ExampleTD.svg
(2.54 KiB) Downloaded 192 times
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Inkscape adding X number of pixels to vertical coordinates (diff coordinate systems on diff layers)

Postby tylerdurden » Thu Mar 23, 2017 8:00 pm

gk01 wrote:...I've tried creating a new document, but the anomaly persists...


If your new documents are made from a custom template, the custom template might have a saved layer transform.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Inkscape adding X number of pixels to vertical coordinates (diff coordinate systems on diff layers)

Postby Moini » Thu Mar 23, 2017 9:30 pm

You can fix it by creating a new layer in the document and moving the contents into it (and also fix the template, of course).
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

gk01
Posts: 4
Joined: Sun Feb 05, 2017 12:39 pm

Re: Inkscape adding X number of pixels to vertical coordinates (diff coordinate systems on diff layers)

Postby gk01 » Fri Mar 24, 2017 4:25 am

tylerdurden wrote:
gk01 wrote:...I've tried creating a new document, but the anomaly persists...


If your new documents are made from a custom template, the custom template might have a saved layer transform.


thank you so much tyler, and ty miono. you learn something new everyday. i thought i was going to have to recopy everything to a new document, and there was like 60+ layers with shit tons of paths :(

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Inkscape adding X number of pixels to vertical coordinates (diff coordinate systems on diff layers)

Postby tylerdurden » Fri Mar 24, 2017 6:46 am

Thanks to you as well... I wouldn't have though a layer would get transformed, but as you say, you learn something new everyday. :)
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Inkscape adding X number of pixels to vertical coordinates (diff coordinate systems on diff layers)

Postby Moini » Fri Mar 24, 2017 7:55 am

Mostly, they acquire transforms if you change the document size. In 0.91, this causes difficulties with tiled clones (and a couple more things).
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Discuss Software Issues”