diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2017-04-24 13:23:51 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2017-04-24 13:57:17 +0200 |
commit | 653e455e1bd5bab87dbc6a20853c8a9ca0af6175 (patch) | |
tree | 58228de27d4d38b45c7accd0811bb708e290a4c7 /sfx2/source/doc/guisaveas.cxx | |
parent | 92b8b8b04cdceedcdc4e58041d9d4d1c7dee21b8 (diff) |
Do not pass a suggested name to GUIStoreModel: it is always overwritten
Change-Id: Iac60c012f05916c5324e1ea8bae142ab329aa4e0
Diffstat (limited to 'sfx2/source/doc/guisaveas.cxx')
-rw-r--r-- | sfx2/source/doc/guisaveas.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx index 02f6a11747dc..573a84ded23c 100644 --- a/sfx2/source/doc/guisaveas.cxx +++ b/sfx2/source/doc/guisaveas.cxx @@ -1254,10 +1254,8 @@ bool SfxStoringHelper::GUIStoreModel( const uno::Reference< frame::XModel >& xMo const OUString& aSlotName, uno::Sequence< beans::PropertyValue >& aArgsSequence, bool bPreselectPassword, - const OUString& _aSuggestedName, SignatureState nDocumentSignatureState ) { - OUString aSuggestedName = _aSuggestedName; ModelData_Impl aModelData( *this, xModel, aArgsSequence ); bool bDialogUsed = false; @@ -1454,7 +1452,7 @@ bool SfxStoringHelper::GUIStoreModel( const uno::Reference< frame::XModel >& xMo aSuggestedDir = aModelData.GetDocProps().getUnpackedValueOrDefault("SuggestedSaveAsDir", OUString() ); } - aSuggestedName = aModelData.GetMediaDescr().getUnpackedValueOrDefault("SuggestedSaveAsName", OUString() ); + OUString aSuggestedName = aModelData.GetMediaDescr().getUnpackedValueOrDefault("SuggestedSaveAsName", OUString() ); if ( aSuggestedName.isEmpty() ) aSuggestedName = aModelData.GetDocProps().getUnpackedValueOrDefault("SuggestedSaveAsName", OUString() ); |