summaryrefslogtreecommitdiff
path: root/sd/source/ui/func/fupoor.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-11-16 15:12:16 +0000
committerOliver Bolte <obo@openoffice.org>2004-11-16 15:12:16 +0000
commitf73e1315e51d6f8cfe943a51fc09cad72a794176 (patch)
tree58906018c9f7babd6cdeefc5bebb7a5746aee08c /sd/source/ui/func/fupoor.cxx
parentc5b75078dc153f0afbf8a6380f00c76f9c2a5162 (diff)
INTEGRATION: CWS impress15 (1.35.8); FILE MERGED
2004/10/21 16:08:20 af 1.35.8.1: #i29592# Guarding access to LayerTabControl against missing control.
Diffstat (limited to 'sd/source/ui/func/fupoor.cxx')
-rw-r--r--sd/source/ui/func/fupoor.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sd/source/ui/func/fupoor.cxx b/sd/source/ui/func/fupoor.cxx
index 2709aacc262d..f82cc28d0834 100644
--- a/sd/source/ui/func/fupoor.cxx
+++ b/sd/source/ui/func/fupoor.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fupoor.cxx,v $
*
- * $Revision: 1.35 $
+ * $Revision: 1.36 $
*
- * last change: $Author: kz $ $Date: 2004-10-04 18:33:06 $
+ * last change: $Author: obo $ $Date: 2004-11-16 16:12:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1312,11 +1312,13 @@ void FuPoor::SwitchLayer (sal_Int32 nOffset)
{
LayerTabBar* pLayerTabControl =
static_cast<DrawViewShell*>(pViewShell)->GetLayerTabControl();
- pLayerTabControl->SendDeactivatePageEvent ();
+ if (pLayerTabControl != NULL)
+ pLayerTabControl->SendDeactivatePageEvent ();
pDrawViewShell->SetActiveTabLayerIndex (nIndex);
- pLayerTabControl->SendActivatePageEvent ();
+ if (pLayerTabControl != NULL)
+ pLayerTabControl->SendActivatePageEvent ();
}
}
}