diff options
Diffstat (limited to 'sc/source/ui/view/tabvwsh.cxx')
-rw-r--r-- | sc/source/ui/view/tabvwsh.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/view/tabvwsh.cxx b/sc/source/ui/view/tabvwsh.cxx index fdad3b66af33..d8e48596f3f6 100644 --- a/sc/source/ui/view/tabvwsh.cxx +++ b/sc/source/ui/view/tabvwsh.cxx @@ -106,14 +106,13 @@ SFX_IMPL_NAMED_VIEWFACTORY( ScTabViewShell, "Default" ) OUString ScTabViewShell::GetFormula(const ScAddress& rAddress) { - OUString sFormula; ScDocument& rDoc = GetViewData().GetDocument(); ScRefCellValue aCell(rDoc, rAddress); if (!aCell.isEmpty() && aCell.meType == CELLTYPE_FORMULA) { - aCell.mpFormula->GetFormula( sFormula); + return aCell.mpFormula->GetFormula(); } - return sFormula; + return OUString(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |