summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-06-06 09:54:22 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-06-06 09:54:22 +0000
commitb26ea0541fefc955b21a58ed9302d47f988598dc (patch)
tree6f588a6fc108879c4088e259955c5e6002d18d22
parent0fd6f2c76ac2b3000341414fc0a3a8bde5fd5681 (diff)
INTEGRATION: CWS dba07 (1.25.4); FILE MERGED
2003/06/02 12:20:37 fs 1.25.4.1: #110018# queryAggregation: don't let the wrong base class steal the XTypeProvider interface
-rw-r--r--forms/source/component/ImageControl.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx
index 6a390cfa5b7b..daccbad5ac81 100644
--- a/forms/source/component/ImageControl.cxx
+++ b/forms/source/component/ImageControl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ImageControl.cxx,v $
*
- * $Revision: 1.25 $
+ * $Revision: 1.26 $
*
- * last change: $Author: vg $ $Date: 2003-05-23 09:05:47 $
+ * last change: $Author: vg $ $Date: 2003-06-06 10:54:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -286,9 +286,13 @@ Any SAL_CALL OImageControlModel::queryAggregation(const Type& _rType) throw (Run
{
// oder matters: we want to "override" the XImageProducer interface of the aggreate with out
// own XImageProducer interface, thus we need to query OImageControlModel_Base first
-
Any aReturn = OImageControlModel_Base::queryInterface( _rType );
- if (!aReturn.hasValue())
+
+ // BUT: _don't_ let it feel responsible for the XTypeProvider interface
+ // (as this is implemented by our base class in the proper way)
+ if ( _rType.equals( ::getCppuType( static_cast< Reference< XTypeProvider >* >( NULL ) ) )
+ || !aReturn.hasValue()
+ )
aReturn = OBoundControlModel::queryAggregation( _rType );
return aReturn;