From 82df3bb3882a2c284b62090394175d4a09f6f2e1 Mon Sep 17 00:00:00 2001 From: os Date: Tue, 27 Oct 2009 10:52:02 +0100 Subject: #i96415# delete PrintProgress on abort --- sw/source/ui/uiview/viewprt.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 ) { -- cgit