Fixed "Hex grid" button crash, partially fixes 1907.
Merge pull request #53 from xyzz/fix_1907

Fixed "Hex grid" button crash, partially fixes 1907.