Temporary fix for Issue #356

[Issu 356](https://github.com/LibreCAD/LibreCAD/issues/356) is fixed in simple cases but this may not be a definitive fix.