Sheet: enable Split action only if only one merged cell is selected
Both main menu and context menu Partially fixes #6744
This commit is contained in:
@@ -162,7 +162,10 @@ bool CmdSpreadsheetSplitCell::isActive()
|
||||
Sheet * sheet = sheetView->getSheet();
|
||||
|
||||
if (current.isValid())
|
||||
return sheet->isMergedCell(CellAddress(current.row(), current.column()));
|
||||
{
|
||||
return (sheetView->selectedIndexesRaw().size() == 1 &&
|
||||
sheet->isMergedCell(CellAddress(current.row(), current.column())));
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user