summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/unocontrolcontainer.cxx
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2010-11-02 16:55:17 +0000
committerNoel Power <noel.power@novell.com>2010-11-02 20:05:21 +0000
commit95824f8636a604cb498f6e7d62ff0ed3d6b2d5ba (patch)
tree938dcabe5b753e67311992f4aa0273501b17eac8 /toolkit/source/controls/unocontrolcontainer.cxx
parent5a0406aa77feb8779200a7906f55c0176ceaafd6 (diff)
initial import of latest cws container_controls
Diffstat (limited to 'toolkit/source/controls/unocontrolcontainer.cxx')
-rw-r--r--toolkit/source/controls/unocontrolcontainer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/source/controls/unocontrolcontainer.cxx b/toolkit/source/controls/unocontrolcontainer.cxx
index 7aa2e63fd9cc..d4755d37df50 100644
--- a/toolkit/source/controls/unocontrolcontainer.cxx
+++ b/toolkit/source/controls/unocontrolcontainer.cxx
@@ -809,8 +809,8 @@ void UnoControlContainer::createPeer( const uno::Reference< awt::XToolkit >& rxT
aCtrls.getArray()[n]->createPeer( rxToolkit, getPeer() );
uno::Reference< awt::XVclContainerPeer > xC( getPeer(), uno::UNO_QUERY );
-
- xC->enableDialogControl( sal_True );
+ if ( xC.is() )
+ xC->enableDialogControl( sal_True );
ImplActivateTabControllers();
}