android-signaturepad
android-signaturepad copied to clipboard
SVG export duplicates last path
If you call getSignatureSvg() multiple times upon created signature, it's adding last SVG path again and again.
In the SvgBuilder.build(final int width, final int height) function there is a call to append the current path. This will keep adding the current path upon each getSignatureSvg call as you have discovered. I think the appendCurrentPath() function should also set the _currentPathBuilder to null so that once a path is appended it cannot be appended again.
Yep, this fix works. Thanks!
Thanks for finding and fixing that bug. Would you mind to create a pull request, so I can merge that fix into the master branch?