summaryrefslogtreecommitdiff
path: root/basic/source
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2002-08-08 08:53:13 +0000
committerAndreas Bregas <ab@openoffice.org>2002-08-08 08:53:13 +0000
commit6acb54c19f07b1ea51851ce04727c4d33ca9a454 (patch)
tree454884081b1db5de5c011a0fa54ccc17d337292e /basic/source
parentd59c7de521082984131d27cf5ef2dc7995518a61 (diff)
#94670# Don't ask for XMaterialHolder if object supports XInvocation directly
Diffstat (limited to 'basic/source')
-rw-r--r--basic/source/classes/sbunoobj.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 505607fe10eb..504c6728768d 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sbunoobj.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: ab $ $Date: 2002-08-07 08:41:04 $
+ * last change: $Author: ab $ $Date: 2002-08-08 09:53:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1482,8 +1482,10 @@ SbUnoObject::SbUnoObject( const String& aName, const Any& aUnoObj_ )
if( mxInvocation.is() )
{
- // MaterialHolder holen
- mxMaterialHolder = Reference< XMaterialHolder >::query( mxInvocation );
+ // #94670: This is WRONG because then the MaterialHolder doesn't refer
+ // to the object implementing XInvocation but to the object passed to
+ // the invocation service!!!
+ // mxMaterialHolder = Reference< XMaterialHolder >::query( mxInvocation );
// ExactName holen
mxExactName = Reference< XExactName >::query( mxInvocation );