Need to call regenAppend after calling addShape(sender, &tmpshape).
Fix writeString and exportSVGPath.