diff options
-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) |