summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabview3.cxx
diff options
context:
space:
mode:
authorEike Rathke [er] <eike.rathke@oracle.com>2010-12-11 16:08:03 +0100
committerEike Rathke [er] <eike.rathke@oracle.com>2010-12-11 16:08:03 +0100
commit558e0532aefac886e814bf1cb237261cf21a5e45 (patch)
tree029f6f6b7c54d573f6997932b0c5d3cb8c294bad /sc/source/ui/view/tabview3.cxx
parent60851227548d3576a92898b13b0e1c15cc719f44 (diff)
ooo33gsl13: #i115906# obtain correct data range for external references
* Apparently ScTable::GetFirstDataPos() never worked as intended and selected the first non-empty row of the first non-empty column instead of also taking following columns into account where non-empty rows may be on top of that. * Caller of ScDocument::ShrinkToDataArea() must check the return value, if false there is no data in the area passed and the values obtained may be out of bounds, not in order or unmodified. * In ScExternalRefMgr a call of ScDocument::ShrinkToUsedDataArea() was intended instead of ScDocument::ShrinkToDataArea(). For this changed the return of ShrinkToUsedDataArea() to flag if there is any data and added an out parameter to flag if the area was shrunk. * Sanitized arguments and slightly optimized ScTable::ShrinkToUsedDataArea() to not have to check for >0 and <MAX on each iteration. (transplanted from 31b53a2ec7e32f9560464f8a3b9f6c3e07b29083)
Diffstat (limited to 'sc/source/ui/view/tabview3.cxx')
0 files changed, 0 insertions, 0 deletions