diff options
author | os <os@openoffice.org> | 2009-10-27 10:52:02 +0100 |
---|---|---|
committer | os <os@openoffice.org> | 2009-10-27 10:52:02 +0100 |
commit | 82df3bb3882a2c284b62090394175d4a09f6f2e1 (patch) | |
tree | d9378b699343e64769cea20e5b86c13aad8aac79 | |
parent | 4e525deca576c2678cd5ace6095415ef41968875 (diff) |
#i96415# delete PrintProgress on abort
-rw-r--r-- | sw/source/ui/uiview/viewprt.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/ui/uiview/viewprt.cxx b/sw/source/ui/uiview/viewprt.cxx index 6d219e71ab30..b75c1786f740 100644 --- a/sw/source/ui/uiview/viewprt.cxx +++ b/sw/source/ui/uiview/viewprt.cxx @@ -248,7 +248,10 @@ ErrCode SwView::DoPrint( SfxPrinter *pPrinter, PrintDialog *pDlg, BOOL bSilent, QueryBox aBox( &GetEditWin(), SW_RES( DLG_PRT_FIELDNAME ) ); USHORT nRet = aBox.Execute(); if( RET_CANCEL == nRet) + { + delete pProgress; return ERRCODE_IO_ABORT; + } // disable field commands if( RET_NO != nRet ) { |