From e270f8047c195798b3ed2a14a6f3e082af5c822b Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Fri, 6 Sep 2002 11:43:40 +0000 Subject: #103035#: complex arguments need at least one member set --- sfx2/source/appl/appuno.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'sfx2/source/appl') diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index 3d498bf9ee9f..114c66781358 100644 --- a/sfx2/source/appl/appuno.cxx +++ b/sfx2/source/appl/appuno.cxx @@ -2,9 +2,9 @@ * * $RCSfile: appuno.cxx,v $ * - * $Revision: 1.72 $ + * $Revision: 1.73 $ * - * last change: $Author: cd $ $Date: 2002-08-29 13:43:59 $ + * last change: $Author: mba $ $Date: 2002-09-06 12:43:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -462,7 +462,9 @@ void TransformParameters( sal_uInt16 nSlotId, const ::com::sun::star::uno::Seque else { // complex argument; collect sub items from argument arry and reconstruct complex item - BOOL bRet = TRUE; + // only put item if at least one member was found and had the correct type + // (is this a good idea?! Should we ask for *all* members?) + BOOL bRet = FALSE; for ( sal_uInt16 n=0; nPutValue( rProp.Value, nSubId ) ) + // ... but it was not convertable bRet = FALSE; break; } -- cgit