Index: sfx2/source/bastyp/progress.cxx =================================================================== RCS file: /cvs/oo/framework/sfx2/source/bastyp/progress.cxx,v retrieving revision 1.11 diff -u -r1.11 progress.cxx --- sfx2/source/bastyp/progress.cxx 2002/07/22 07:05:53 1.11 +++ sfx2/source/bastyp/progress.cxx 2002/10/10 06:34:27 @@ -214,7 +214,9 @@ void SfxProgress_Impl::Enable_Impl( BOOL bEnable ) { - SfxObjectShell* pDoc = bAllDocs ? NULL : xObjSh; + SfxObjectShell* pDoc = NULL ; + if(bAllDocs) + pDoc = xObjSh; SfxViewFrame *pFrame= SfxViewFrame::GetFirst(pDoc); while ( pFrame ) {