diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-11-20 16:41:51 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2013-11-20 18:23:07 +0000 |
commit | 0c7e7043bdeab5ad683e9621573441891ef4868b (patch) | |
tree | 23540757510ed503056244c4fc8d0d4bf78c14f7 /sc/source/core/tool/sharedformula.cxx | |
parent | 4787398ff07fe1bfe34ea878e9c8ee96e5d9994f (diff) |
Fix a few of my own thinkos, and add some assertions
Fix two obvious mistakes from 8c37bafbc5adc0c79f218f9db2dc25ca8e683125.
Add asserts to make sure the calls to ScFormulaCell::CreateCellGroup() that
now don't take the nStart parameter any more (but assume that the cell for
which this methoid is called is the start one) match the old ones in semantics.
Change-Id: I50cb0cdaf620253881225baf39ae9cd935917b27
Diffstat (limited to 'sc/source/core/tool/sharedformula.cxx')
-rw-r--r-- | sc/source/core/tool/sharedformula.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/tool/sharedformula.cxx b/sc/source/core/tool/sharedformula.cxx index 20eef831a956..ed35690a63a7 100644 --- a/sc/source/core/tool/sharedformula.cxx +++ b/sc/source/core/tool/sharedformula.cxx @@ -151,6 +151,7 @@ void SharedFormulaUtil::joinFormulaCells(const CellStoreType::position_type& rPo else { // neither cells are shared. + assert(rCell1.aPos.Row() == (SCROW)(rPos.first->position + rPos.second)); xGroup1 = rCell1.CreateCellGroup(2, eState == ScFormulaCell::EqualInvariant); rCell2.SetCellGroup(xGroup1); } |