[Libreoffice-commits] .: sd/source
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Feb 2 08:09:44 PST 2011
sd/source/ui/view/drviews1.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 48f4f5f4283cb9a58223c6cc6f4d0ebadce53722
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Feb 2 16:05:01 2011 +0000
Resolves: rhbz#670020 crash in slidesorting
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index d1acb96..e0b220e 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)
More information about the Libreoffice-commits
mailing list