diff options
author | Mathias Bauer <mba@openoffice.org> | 2002-06-07 07:42:29 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2002-06-07 07:42:29 +0000 |
commit | 631688f7d48df98b62be8fb22735569a9d56486b (patch) | |
tree | aa96e6ea56c44e60ce6eebcb616df1b493837b75 /sfx2 | |
parent | ed0dac01d1ec7c22988525d28b7c709a382da8a0 (diff) |
#99966#: better error message
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/request.cxx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sfx2/source/control/request.cxx b/sfx2/source/control/request.cxx index fa3ee261f1dd..3ac874119455 100644 --- a/sfx2/source/control/request.cxx +++ b/sfx2/source/control/request.cxx @@ -2,7 +2,7 @@ // class SfxRequest // // (C) 1996 - 2000 StarDivision GmbH, Hamburg, Germany -// $Author: mba $ $Date: 2002-05-27 13:52:19 $ $Revision: 1.6 $ +// $Author: mba $ $Date: 2002-06-07 08:42:29 $ $Revision: 1.7 $ // $Logfile: T:/sfx2/source/control/request.cxv $ $Workfile: REQUEST.CXX $ //------------------------------------------------------------------*/ @@ -193,11 +193,18 @@ SfxRequest::SfxRequest pImp->nCallMode = SFX_CALLMODE_SYNCHRON; pImp->bUseTarget = FALSE; pImp->pSlot = rShell.GetInterface()->GetSlot(nSlotId); - DBG_ASSERT( pImp->pSlot, "recording slot unsupported by shell" ); - if ( pImp->pSlot ) // Hosentr"ager damit man besser testen kann + if ( pImp->pSlot ) Record_Impl( rShell, *pImp->pSlot, SfxRequest::GetMacroRecorder() ); - DBG_ASSERTWARNING( (SfxRequest::GetMacroRecorder().is()), "recording without recording macro is overfluous" ); +#ifdef DBG_UTIL + else + { + ByteString aStr( "Recording slot unsupported by shell: "); + aStr += ByteString::CreateFromInt32( nSlotId ); + DBG_ERROR( aStr.GetBuffer() ); + } +#endif } + //-------------------------------------------------------------------- @@ -868,6 +875,9 @@ void SfxRequest::SetTarget( const String &rTarget ) /*------------------------------------------------------------------------ $Log: not supported by cvs2svn $ + Revision 1.6 2002/05/27 13:52:19 mba + #98405#: more debugging code for macro recording + Revision 1.5 2002/04/22 16:56:18 mba #98405#: new macro recording functionality |