Start Draw, draw a rectangle, export it to a SVG document.
Open the SVG document with a browser or Inkscape: instead of a rectangle, you will see a self-crossing polygon.
A patch is available on gerrit: https://gerrit.libreoffice.org/#/c/37899/
I cannot confirm it with Version: 18.104.22.168.alpha1+
Build ID: 965494c544dd8f35ae83b7cf38549009da06c367
CPU threads: 4; OS: Windows 6.1; UI render: default;
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2017-05-10_23:06:27
Locale: de-DE (de_DE); Calc: group
Which version do you use? How do you draw a "rectangle".
Oh well, interesting 22.214.171.124.alpha tag has been created on April, the offending commit on February, however by git this commit is not contained in 126.96.36.199.alpha.
So let me change it back to master branch.
Thanks for catching this incorrect setting
Marco Cecchetti committed a patch related to this issue.
It has been pushed to "master":
tdf#107998 - svg export: shapes are uncorrect both in Draw and Impress
It will be available in 5.4.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
I guess fixed with the commit from comment4 - thanks Marco!