diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-01-10 16:38:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-01-11 08:16:02 +0100 |
commit | 529d9b99b2eae8d42fe839cfa258477dad665280 (patch) | |
tree | 5a0ced5a7f4e75668be9d1a536586cf387cd2ed1 /sfx2 | |
parent | 6b5969cee2495b760e27b896ec4f0bbd61239e23 (diff) |
Hide bogus "Untitled already exists" errors...
...when adding multiple new template regions in a row in
SfxOrganizeDlg_Impl.
(cherry picked from commit d6b26b85cf8ca9d925b13ee3379516dabba61f90)
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/doctemplates.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index 5eb55b5640ed..ad5a9e2d5960 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -872,7 +872,8 @@ sal_Bool SfxDocTplService_Impl::CreateNewUniqueFolderWithPrefix( const ::rtl::OU INetURLObject aDirPath( aPath ); Content aParent; - if ( Content::create( aDirPath.GetMainURL( INetURLObject::NO_DECODE ), maCmdEnv, aParent ) ) + uno::Reference< XCommandEnvironment > aQuietEnv; + if ( Content::create( aDirPath.GetMainURL( INetURLObject::NO_DECODE ), aQuietEnv, aParent ) ) { for ( sal_Int32 nInd = 0; nInd < 32000; nInd++ ) { |