[Sheet][Bugfix] Reject alignment change for merged cell except top-left one

This commit is contained in:
0penBrain
2021-11-19 16:44:08 +01:00
committed by Chris Hennes
parent 28d10fc6e6
commit 4116a59813

View File

@@ -485,6 +485,7 @@ void PropertySheet::setAlignment(CellAddress address, int _alignment)
{
Cell * cell = nonNullCellAt(address);
assert(cell != 0);
if (cell->address != address) return; //Reject alignment change for merged cell except top-left one
cell->setAlignment(_alignment);
}