summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2010-10-22 10:48:39 +0200
committerMathias Bauer <mba@openoffice.org>2010-10-22 10:48:39 +0200
commit6618b6847491c8749f71b643a69bb4d112bb2563 (patch)
tree8ccea6d299dea2b6304b131815516f1e2607797b
parent7120b9e3c388494d77d83463b31885cae7af0fec (diff)
CWS changehid: #i113152#: arguments shall be checked only for pluginsooo/DEV300_m91
-rw-r--r--sw/source/ui/shells/textsh.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/ui/shells/textsh.cxx b/sw/source/ui/shells/textsh.cxx
index 39b156cee1..0326473a08 100644
--- a/sw/source/ui/shells/textsh.cxx
+++ b/sw/source/ui/shells/textsh.cxx
@@ -292,17 +292,13 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
pName = &aName;
}
- SFX_REQUEST_ARG( rReq, pClassItem, SfxStringItem, FN_PARAM_1, sal_False );
SFX_REQUEST_ARG( rReq, pClassLocationItem, SfxStringItem, FN_PARAM_2, sal_False );
SFX_REQUEST_ARG( rReq, pCommandsItem, SfxStringItem, FN_PARAM_3, sal_False );
//TODO/LATER: recording currently not working, need code for Commandlist
svt::EmbeddedObjectRef xObj;
- if( pClassItem || pClassLocationItem || pCommandsItem )
+ if( nSlot == SID_INSERT_PLUGIN && ( pClassLocationItem || pCommandsItem ) )
{
- String sClass;
String sClassLocation;
- if(pClassItem)
- sClass = pClassItem->GetValue();
if(pClassLocationItem)
sClassLocation = pClassLocationItem->GetValue();