From 571f49ffed792095fd41e2d07dbe30befa99a5b8 Mon Sep 17 00:00:00 2001 From: Raymond Wells Date: Mon, 2 Sep 2013 22:34:23 +0200 Subject: fdo#60889: FILEOPEN: Incorrect opening XLSX file (sharedStrings.xml) Change-Id: I2fc39999ecdb13eecc28e012debdeda811e98581 Reviewed-on: https://gerrit.libreoffice.org/5763 Reviewed-by: Thomas Arnhold Reviewed-by: Markus Mohrhard Tested-by: Markus Mohrhard --- sc/source/filter/oox/workbookfragment.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx index 6907d93d4b50..fc3c2aa3e857 100644 --- a/sc/source/filter/oox/workbookfragment.cxx +++ b/sc/source/filter/oox/workbookfragment.cxx @@ -213,7 +213,8 @@ void WorkbookFragment::finalizeImport() // read the shared string table substream (requires finalized styles buffer) OUString aSstFragmentPath = getFragmentPathFromFirstType( CREATE_OFFICEDOC_RELATION_TYPE( "sharedStrings" ) ); if( !aSstFragmentPath.isEmpty() ) - importOoxFragment( new SharedStringsFragment( *this, aSstFragmentPath ) ); + if (!importOoxFragment( new SharedStringsFragment( *this, aSstFragmentPath ) )) + importOoxFragment(new SharedStringsFragment(*this, aSstFragmentPath.replaceFirst("sharedStrings","SharedStrings"))); xGlobalSegment->setPosition( 0.75 ); // read the connections substream -- cgit v1.2.3