diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-24 04:13:58 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-24 05:14:17 +0100 |
commit | bf535cbfdaa3edde7afaa6167092717ca7b98b9f (patch) | |
tree | 6e868a4e56ee0bf8a918dbd03b13af7cc12d430d /sc | |
parent | ef59aa2e92cb1a1e9b8dfe7a234f06d44df8516c (diff) |
it is enough to check at the end if pos changed
Change-Id: Id1e4957ab22eb2ff280271b5a332095df29c9ad6
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/cell2.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx index 0e217f2e19bb..040890af935c 100644 --- a/sc/source/core/data/cell2.cxx +++ b/sc/source/core/data/cell2.cxx @@ -874,7 +874,6 @@ bool ScFormulaCell::UpdateReference(UpdateRefMode eUpdateRefMode, nCol = 0; else if ( nCol > MAXCOL ) nCol = MAXCOL; - bCellStateChanged = aPos.Col() != nCol; aPos.SetCol( nCol ); } } @@ -888,7 +887,6 @@ bool ScFormulaCell::UpdateReference(UpdateRefMode eUpdateRefMode, nRow = 0; else if ( nRow > MAXROW ) nRow = MAXROW; - bCellStateChanged = aPos.Row() != nRow; aPos.SetRow( nRow ); } } @@ -903,10 +901,10 @@ bool ScFormulaCell::UpdateReference(UpdateRefMode eUpdateRefMode, nTab = 0; else if ( nTab > nMaxTab ) nTab = nMaxTab; - bCellStateChanged = aPos.Tab() != nTab; aPos.SetTab( nTab ); } } + bCellStateChanged = aPos != aOldPos; } else if ( r.In( aPos ) ) { |