From 8409cfd0c4842fae1e087f8c932748f9305871a8 Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Fri, 22 Oct 2010 10:48:39 +0200 Subject: CWS changehid: #i113152#: arguments shall be checked only for plugins --- sw/source/ui/shells/textsh.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sw/source') diff --git a/sw/source/ui/shells/textsh.cxx b/sw/source/ui/shells/textsh.cxx index 2e39e1ebd6d4..52b60c66d178 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(); -- cgit v1.2.3