Fixes: lp:1538239 * https://bugs.launchpad.net/kicad/+bug/1538239 (cherry picked from commit 96d7178)
(cherry picked from commit 8ee3e77)