From 4a411ab35a6a60dfafb3e06e8ac7bec29302d154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Zolnai?= Date: Sun, 9 Oct 2016 20:23:59 +0200 Subject: [PATCH] Reduce code duplication Change-Id: If45bd7d2d5c5ebda9fa8020138353c1224b2e1c8 --- sc/source/core/data/document.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(maTabs.size()) && maTabs[nTab]) + if (TableExists(nTab)) { OUString aStr; maTabs[nTab]->GetString(nCol, nRow, aStr);