summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2020-08-21 11:36:39 +0200
committerAndras Timar <andras.timar@collabora.com>2020-08-21 17:24:08 +0200
commit484c933a9a6a77f7b713a674b6a139fb6362acb1 (patch)
treef367091db6712575174b2d048d9621163dae44b5
parentUpdate git submodules (diff)
downloadcore-484c933a9a6a77f7b713a674b6a139fb6362acb1.tar.gz
core-484c933a9a6a77f7b713a674b6a139fb6362acb1.zip
Use localized default sheet name, if sheet name is missing in xlsx file
Change-Id: I8a4708437c41374f67e60d22f56d374c39b4ad3f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101068 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--sc/source/filter/oox/worksheetbuffer.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/filter/oox/worksheetbuffer.cxx b/sc/source/filter/oox/worksheetbuffer.cxx
index 23630400dfda..d6ba2f0ff30a 100644
--- a/sc/source/filter/oox/worksheetbuffer.cxx
+++ b/sc/source/filter/oox/worksheetbuffer.cxx
@@ -36,6 +36,8 @@
#include <document.hxx>
#include <documentimport.hxx>
#include <biffhelper.hxx>
+#include <globstr.hrc>
+#include <scresid.hxx>
namespace oox {
namespace xls {
@@ -191,7 +193,7 @@ WorksheetBuffer::IndexNamePair WorksheetBuffer::createSheet( const OUString& rPr
Reference< XSpreadsheets > xSheets( getDocument()->getSheets(), UNO_QUERY_THROW );
Reference< XIndexAccess > xSheetsIA( xSheets, UNO_QUERY_THROW );
sal_Int16 nCalcSheet = -1;
- OUString aSheetName = rPreferredName.isEmpty() ? "Sheet" : rPreferredName;
+ OUString aSheetName = rPreferredName.isEmpty() ? ScResId(STR_TABLE_DEF) : rPreferredName;
if( nSheetPos < xSheetsIA->getCount() )
{
nCalcSheet = static_cast< sal_Int16 >( nSheetPos );