diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2016-10-09 20:23:59 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2016-10-09 20:23:59 +0200 |
commit | 4a411ab35a6a60dfafb3e06e8ac7bec29302d154 (patch) | |
tree | 56aa5f2691b3b2aeeb04649f8bb17afc9e16cbe2 /sc | |
parent | 03a1143cc75161dab56b20f1ab9e723ddd0caa8e (diff) |
Reduce code duplication
Change-Id: If45bd7d2d5c5ebda9fa8020138353c1224b2e1c8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/document.cxx | 2 |
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); |