summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2016-10-09 20:23:59 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2016-10-09 20:23:59 +0200
commit4a411ab35a6a60dfafb3e06e8ac7bec29302d154 (patch)
tree56aa5f2691b3b2aeeb04649f8bb17afc9e16cbe2 /sc/source
parent03a1143cc75161dab56b20f1ab9e723ddd0caa8e (diff)
Reduce code duplication
Change-Id: If45bd7d2d5c5ebda9fa8020138353c1224b2e1c8
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 692667ef1ade..de7ee84908e8 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -3446,7 +3446,7 @@ void ScDocument::SetValue( const ScAddress& rPos, double fVal )
OUString ScDocument::GetString( SCCOL nCol, SCROW nRow, SCTAB nTab ) const
{
- if (ValidTab(nTab) && nTab < static_cast<SCTAB>(maTabs.size()) && maTabs[nTab])
+ if (TableExists(nTab))
{
OUString aStr;
maTabs[nTab]->GetString(nCol, nRow, aStr);