setupVertical() and setupHorizontal() methods on QuiltViewBase class, call setColumnCount(int) and setRowCount(int) passing -1 as undefined value, this makes GridLayout throw an IllegalArgumentException. Instead, these methods should pass UNDEFINED constant as undefined value.
setupVertical()andsetupHorizontal()methods onQuiltViewBaseclass, callsetColumnCount(int)andsetRowCount(int)passing -1 as undefined value, this makes GridLayout throw anIllegalArgumentException. Instead, these methods should passUNDEFINEDconstant as undefined value.