summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2001-01-25 15:16:49 +0000
committerMalte Timmermann <mt@openoffice.org>2001-01-25 15:16:49 +0000
commitdfc8e59fd286b92610604db569482c512a08399e (patch)
tree63485123201078286a112af90a76ca1c9e30699d /toolkit
parent2df83b2c69afb6968635baaff5d9f4b40965d471 (diff)
modify: control from dialog not in control list
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/unocontrols.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx
index 610f842130ab..ad5180315681 100644
--- a/toolkit/source/controls/unocontrols.cxx
+++ b/toolkit/source/controls/unocontrols.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unocontrols.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: mt $ $Date: 2001-01-25 13:40:45 $
+ * last change: $Author: mt $ $Date: 2001-01-25 16:16:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -603,7 +603,15 @@ void UnoDialogControl::propertiesChange( const uno::Sequence< beans::PropertyCha
if ( ( rEvt.PropertyName == s1 ) || ( rEvt.PropertyName == s2 ) || ( rEvt.PropertyName == s3 ) || ( rEvt.PropertyName == s4 ) )
{
uno::Reference< awt::XControlModel > xModel( rEvt.Source, uno::UNO_QUERY );
- ImplSetPosSize( StdTabController::FindControl( getControls(), xModel ) );
+ if ( (awt::XControlModel*)xModel.get() == (awt::XControlModel*)getModel().get() )
+ {
+ uno::Reference< awt::XControl > xThis( (uno::XAggregation*)(::cppu::OWeakAggObject*)this, uno::UNO_QUERY );
+ ImplSetPosSize( xThis );
+ }
+ else
+ {
+ ImplSetPosSize( StdTabController::FindControl( getControls(), xModel ) );
+ }
break;
}
}