[BUG] TreeTent Cannot Open Puzzle With More Rows Than Columns
Description
When opening a puzzle with more rows than columns, the UI does not update to show the board. The view works fine for puzzles with more columns than rows or ones with equal columns and rows.
Steps to Reproduce
-
Create a Tree tent puzzle that has more rows than columns. Ex. 7 rows, 3 columns
-
Make the puzzle valid (add a tree somewhere) and save the file.
-
Exit the puzzle editor (File > Exit)
-
Try to open the puzzle you saved in either the puzzle solver or the puzzle editor. The UI will initially look something like this if opened in the puzzle editor:
Upon hovering over a UI element, it will appear.
Expected Behavior
The puzzle should open and the UI should show the puzzle.
Screenshots
No response
Puzzle Files
No response
Additional Context
When clicking on the board, there is an error message that says that the TreeTentCells are null, so the drawing process runs into a null pointer exception. That might be a good place to look first. Perhaps the file isn't imported or exported properly.