mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare/matrix_layout] Change comparison order
Change-Id: Iaa048d82005a7dfa380357e80bbac447c0976e55
This commit is contained in:
committed by
LeaNumworks
parent
323e72a50c
commit
0c44deb35f
@@ -102,13 +102,13 @@ void MatrixLayoutNode::deleteBeforeCursor(LayoutCursor * cursor) {
|
||||
int rowIndex = rowAtChildIndex(indexOfPointedLayout);
|
||||
bool deleted = false;
|
||||
if (columnIndex == 0) {
|
||||
if (rowIndex < m_numberOfRows - 1 && isRowEmpty(rowIndex) && m_numberOfRows > 2) {
|
||||
if (m_numberOfRows > 2 && rowIndex < m_numberOfRows - 1 && isRowEmpty(rowIndex)) {
|
||||
deleteRowAtIndex(rowIndex);
|
||||
deleted = true;
|
||||
}
|
||||
}
|
||||
if (rowIndex == 0) {
|
||||
if (columnIndex < m_numberOfColumns - 1 && isColumnEmpty(columnIndex) && m_numberOfColumns > 2) {
|
||||
if (m_numberOfColumns > 2 && columnIndex < m_numberOfColumns - 1 && isColumnEmpty(columnIndex)) {
|
||||
deleteColumnAtIndex(columnIndex);
|
||||
deleted = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user