diff options
Diffstat (limited to 'sfx2/source/doc/objserv.cxx')
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index bce45ff33e3a..34565c86b979 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -766,7 +766,9 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) { if ( !pNameItem ) { +#ifndef DISABLE_SCRIPTING SbxBase::SetError( SbxERR_WRONG_ARGS ); +#endif rReq.Ignore(); return; } @@ -836,7 +838,9 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) if ( (!pRegionItem && !pRegionNrItem ) || !pNameItem ) { DBG_ASSERT( rReq.IsAPI(), "non-API call without Arguments" ); +#ifndef DISABLE_SCRIPTING SbxBase::SetError( SbxERR_WRONG_ARGS ); +#endif rReq.Ignore(); return; } |