summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/cellsh.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-26 23:48:30 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-27 00:07:18 -0400
commit26343a5a3123315795d0352ee01a1fb5ee0a931a (patch)
treebd2eded239880e02712b3ba0fb355576c123e324 /sc/source/ui/view/cellsh.cxx
parent6a2a132661ae2ae535a7259c802d31c817717bd3 (diff)
More ScBaseCell reduction...
Change-Id: I3a9f9ce79de7117e7b1410c45b217e5bfe005db7
Diffstat (limited to 'sc/source/ui/view/cellsh.cxx')
-rw-r--r--sc/source/ui/view/cellsh.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx
index 32222b46d5b5..bed44c39a146 100644
--- a/sc/source/ui/view/cellsh.cxx
+++ b/sc/source/ui/view/cellsh.cxx
@@ -678,13 +678,11 @@ void ScCellShell::GetState(SfxItemSet &rSet)
else
{
sal_uInt16 nErrCode = 0;
- ScBaseCell* pCell;
- pDoc->GetCell( nPosX, nPosY, nTab, pCell );
- if ( pCell && pCell->GetCellType() == CELLTYPE_FORMULA )
+ ScFormulaCell* pCell = pDoc->GetFormulaCell(ScAddress(nPosX, nPosY, nTab));
+ if (pCell)
{
- ScFormulaCell* pFCell = (ScFormulaCell*) pCell;
- if (!pFCell->IsRunning())
- nErrCode = pFCell->GetErrCode();
+ if (!pCell->IsRunning())
+ nErrCode = pCell->GetErrCode();
}
String aFuncStr;