[Libreoffice-commits] core.git: sc/source
Tamás Zolnai
tamas.zolnai at collabora.com
Sun Oct 9 10:24:10 UTC 2016
sc/source/core/data/document.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4a411ab35a6a60dfafb3e06e8ac7bec29302d154
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
Date: Sun Oct 9 20:23:59 2016 +0200
Reduce code duplication
Change-Id: If45bd7d2d5c5ebda9fa8020138353c1224b2e1c8
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 692667e..de7ee84 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);
More information about the Libreoffice-commits
mailing list