summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviewsb.cxx
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2014-02-28 02:15:29 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-28 16:51:04 +0000
commitb1cf64fe51fd0bb1e9bc8c3bb38d5cc7254d8d5f (patch)
tree0a119fe314b8c820faf3de401378e4afb4adf3fc /sd/source/ui/view/drviewsb.cxx
parent51f73a9be8270487885d185eaa3dda13ec43d9b0 (diff)
Resolves: #i87182# secured usage of LayerTabBar in Draw...
ensured initialization when used as OLE (cherry picked from commit 903afaa8ea0766e01ba41a227d2794c2c40b129a) Conflicts: sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx sd/source/ui/view/drviews3.cxx sd/source/ui/view/drviews7.cxx sd/source/ui/view/drviewsb.cxx Change-Id: I86bb17bf422356247a319f89e54d1ead97b368b8
Diffstat (limited to 'sd/source/ui/view/drviewsb.cxx')
-rw-r--r--sd/source/ui/view/drviewsb.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviewsb.cxx b/sd/source/ui/view/drviewsb.cxx
index d6dddd58a60d..eeb5b7dcb3e8 100644
--- a/sd/source/ui/view/drviewsb.cxx
+++ b/sd/source/ui/view/drviewsb.cxx
@@ -166,6 +166,12 @@ void DrawViewShell::ModifyLayer (
bool bIsLocked,
bool bIsPrintable)
{
+ if(!GetLayerTabControl()) // #i87182#
+ {
+ OSL_ENSURE(false, "No LayerTabBar (!)");
+ return;
+ }
+
if( pLayer )
{
const sal_uInt16 nPageCount = GetLayerTabControl()->GetPageCount();