G'Day,
Dia is great!! I have been using the custom shapes plugin and have noticed a
bug, and included a patch below. Also, I have included a brief addition to
the doco on creating custom shapes. If these diffs are not done correctly,
please let me know how to do it! This is my first ever submission of a bug
fix to a program. The bug could be seen by putting
<svg:path d="M -0.6,-0.6 c 0.2,0.2 0.4,0.2 0.6,0 c 0.2,-0.2 0.4,-0.2 0.6,0 m
-0.8,-0.2 l 0.4,0.4"/>
in a custom shape, and the two bezier curves do not appear. The fix corrects
this whilst still checking for consecutive moves.
I am currently drawing a set of RF circuit symbols (e.g. Mixer, Oscillator,
Filters, Couplers). If anyone is interested in a copy now, please email me.
Regards,
Rob.
diff -r -x *.o dia-devel/objects/custom/shape_info.c
dia-0.86/objects/custom/shape_info.c
336,337c336
< /* if there is some unclosed commands, add them as a GE_PATH,
< * except if previous command was move */
---
> /* if there is some unclosed commands, add them as a GE_PATH */
339c338
< g_array_index(points, BezPoint, points->len).type != BEZ_MOVE_TO)
{
---
> g_array_index(points, BezPoint, 0).type != BEZ_MOVE_TO) {
diff -r -x *.o dia-devel/doc/custom-shapes dia-0.86/doc/custom-shapes
171,172d170
< Capital letters use absolute coordinates, lower case are relative.
<