Comment 10 for bug 1118663

Revision history for this message
TimeWaster (sebi-k-deactivatedaccount) wrote :

i found three bugs and added an improvement, so the code needs to be updated...

bugs:
- sometimes the HPGL data began with a pointless PD (pen down) command (reason: array not reinitialized)
- when the svg data used the "viewBox" attribute the drawing was scaled wrong (reason: viewBox was not processed. took me hours to find -.-)
- the flatness was calculated wrong which resulted in wrong line lengths (reason: the "class" cspsubdiv seems to check if the curve needs to be divided, but it checks a user-delivered value with the length from a point to its handle instead of the length of the bezier curve, which resulted in random line lengths. i replaced the class with my own code which i have integrated)

the bugfixed code is attached.

thanx!