1 |
From 48f4f5f4283cb9a58223c6cc6f4d0ebadce53722 Mon Sep 17 00:00:00 2001 |
2 |
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com> |
3 |
Date: Wed, 2 Feb 2011 16:05:01 +0000 |
4 |
Subject: [PATCH] Resolves: rhbz#670020 crash in slidesorting |
5 |
|
6 |
--- |
7 |
sd/source/ui/view/drviews1.cxx | 3 +++ |
8 |
1 files changed, 3 insertions(+), 0 deletions(-) |
9 |
|
10 |
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx |
11 |
index d1acb96..e0b220e 100644 |
12 |
--- a/sd/source/ui/view/drviews1.cxx |
13 |
+++ b/sd/source/ui/view/drviews1.cxx |
14 |
@@ -712,6 +712,9 @@ SdPage* DrawViewShell::getCurrentPage() const |
15 |
|
16 |
void DrawViewShell::ResetActualPage() |
17 |
{ |
18 |
+ if (!GetDoc()) |
19 |
+ return; |
20 |
+ |
21 |
USHORT nCurrentPage = maTabControl.GetCurPageId() - 1; |
22 |
USHORT nPageCount = (meEditMode == EM_PAGE)?GetDoc()->GetSdPageCount(mePageKind):GetDoc()->GetMasterSdPageCount(mePageKind); |
23 |
if (nPageCount > 0) |
24 |
-- |
25 |
1.7.4 |
26 |
|