diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-02-02 16:05:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-02-02 16:05:01 +0000 |
commit | 86187c3b33583a920860e265790c2bc878e82f8f (patch) | |
tree | ce704da9edba34a579d8ffa815d196c90606f316 /sd | |
parent | 1948a4fb13dfd6d80f954fbb11b37b34b4443c60 (diff) |
Resolves: rhbz#670020 crash in slidesorting
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviews1.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index 951c5db0f452..85561926eb35 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -712,6 +712,9 @@ SdPage* DrawViewShell::getCurrentPage() const void DrawViewShell::ResetActualPage() { + if (!GetDoc()) + return; + USHORT nCurrentPage = maTabControl.GetCurPageId() - 1; USHORT nPageCount = (meEditMode == EM_PAGE)?GetDoc()->GetSdPageCount(mePageKind):GetDoc()->GetMasterSdPageCount(mePageKind); if (nPageCount > 0) |