Created attachment 122730 [details]
This happens when height and width aren't set in the svg element.
That is the same problem as bug 97538.
Fixed by a2d8a9873deb5b39198c346cf637a9a8cb9e5105
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":
tdf#97936: SVGIO: Add unittest
It will be available in 5.2.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.