Patch v2 (from comment #3) tested successfully on Windows XP (32-bit) with lp:inkscape/0.92 and on Xubuntu 16.04, lp:inkscape.
Patch v2 (from comment #3) tested successfully on Windows XP (32-bit) with lp:inkscape/0.92 and on Xubuntu 16.04, lp:inkscape.