Reduce code duplication

Change-Id: If45bd7d2d5c5ebda9fa8020138353c1224b2e1c8
This commit is contained in:
Tamás Zolnai 2016-10-09 20:23:59 +02:00
parent 03a1143cc7
commit 4a411ab35a

View file

@ -3446,7 +3446,7 @@ void ScDocument::SetValue( const ScAddress& rPos, double fVal )
OUString ScDocument::GetString( SCCOL nCol, SCROW nRow, SCTAB nTab ) const 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; OUString aStr;
maTabs[nTab]->GetString(nCol, nRow, aStr); maTabs[nTab]->GetString(nCol, nRow, aStr);