memononen / nanosvg

Simple stupid SVG parser
zlib License
1.71k stars 363 forks source link

Don't do inverse of xform twice. #102

Open misyltoad opened 7 years ago

misyltoad commented 7 years ago

These two lines caused a massive issue in my application as they caused the actual gradient co-ordinates I needed to be changed into garbage. Commenting the extra inverse completely solved the issue.

Is there a reason that he inverse is done here, am I missing something...?

Thanks!

memononen commented 7 years ago

I cannot parse your question :)

You need to explain a bit more what you were trying to do and what you were expecting to see. Can you post a snippet of code?

misyltoad commented 7 years ago

When getting data back from nsvg, the gradients would all be like: -0.512312345, 1.212312 in the xform, which is data that I cannot use, I was expecting to see 354.xxxx, 380.xxx etc. Removing this extra inverse fixed the issue.

SergeySlice commented 6 years ago

No, these lines are in right place. Look for mistake somewhere else.