summaryrefslogtreecommitdiff
path: root/forms/source/component/ImageControl.cxx
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
commit451b61ea9ee8595fb03ddbdc19d9716400c1e5ac (patch)
treee53686bb74557906dfc66cacdd8c5ac139964996 /forms/source/component/ImageControl.cxx
parent9fd5681875123e964af1d1ede11d351ab46ec3f3 (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
Diffstat (limited to 'forms/source/component/ImageControl.cxx')
-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 3b6c3b2c3..1f3e487ee 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;