summaryrefslogtreecommitdiff
path: root/oox/source/xls/workbooksettings.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/xls/workbooksettings.cxx')
-rw-r--r--oox/source/xls/workbooksettings.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/xls/workbooksettings.cxx b/oox/source/xls/workbooksettings.cxx
index 30caadaac9c3..f9eb011e01df 100644
--- a/oox/source/xls/workbooksettings.cxx
+++ b/oox/source/xls/workbooksettings.cxx
@@ -301,7 +301,7 @@ void WorkbookSettings::finalizeImport()
{
getBaseFilter().getMediaDescriptor()[ CREATE_OUSTRING( "ReadOnly" ) ] <<= true;
- Reference< XPropertySet > xDocumentSettings( getDocumentFactory()->createInstance(
+ Reference< XPropertySet > xDocumentSettings( getBaseFilter().getModelFactory()->createInstance(
CREATE_OUSTRING( "com.sun.star.document.Settings" ) ), UNO_QUERY_THROW );
PropertySet aSettingsProp( xDocumentSettings );
if( maFileSharing.mbRecommendReadOnly )