diff options
Diffstat (limited to 'sc/source/core/data/column3.cxx')
-rw-r--r-- | sc/source/core/data/column3.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 5316ee0f64fc..9bd0ee9400f8 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -1784,6 +1784,19 @@ const OUString* ScColumn::GetStringCell( SCROW nRow ) const return static_cast<const ScStringCell*>(pCell)->GetStringPtr(); } +double* ScColumn::GetValueCell( SCROW nRow ) +{ + SCSIZE nIndex; + if (!Search(nRow, nIndex)) + return NULL; + + ScBaseCell* pCell = maItems[nIndex].pCell; + if (pCell->GetCellType() != CELLTYPE_VALUE) + return NULL; + + return static_cast<ScValueCell*>(pCell)->GetValuePtr(); +} + void ScColumn::GetInputString( SCROW nRow, rtl::OUString& rString ) const { SCSIZE nIndex; |