Prevent undefined behaviour when drawing axis
Merge pull request #762 from VictorLamoine/master

Prevent undefined behaviour when drawing axis