Matrix -> Set Dimensions, set for instance two rows and two columns
If you double click in cell (2,1) or (2,2) to enter a number, a new row is added. This is a bit inconvenient if you want to compute the determinant, as you need to manually remove the new row.
This issue was originally TRAC 10724
To reproduce: