sw/source/uibase/dbui/dbmgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a65459eae58f342787abe4c766912f964a8383be Author: Jan-Marek Glogowski <[email protected]> Date: Tue Jul 29 14:26:40 2014 +0200 MM: Don't adapt the view when saving dbg documents DoSaveCompleted updates the SwViewShell and recent file lists after the document was saved via DoSaveAs. So we can simply drop the call and delete the SfxMedium to save a copy. Change-Id: I04a0710949ca60e1ff4cab24c6b504deb130db63 Reviewed-on: https://gerrit.libreoffice.org/10983 Reviewed-by: Michael Stahl <[email protected]> Tested-by: Michael Stahl <[email protected]> diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index b4edcab..9171bcd 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -828,11 +828,11 @@ static void lcl_SaveDoc( SfxObjectShell *xTargetDocShell, aTempFileURL.GetMainURL( INetURLObject::NO_DECODE ), STREAM_STD_READWRITE ); xTargetDocShell->DoSaveAs( *pDstMed ); - xTargetDocShell->DoSaveCompleted( pDstMed ); if( xTargetDocShell->GetError() ) SAL_WARN( "sw.mailmerge", "Error saving: " << aTempFile->GetURL() ); else SAL_INFO( "sw.mailmerge", "Saved doc as: " << aTempFile->GetURL() ); + delete pDstMed; } #endif _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
