libreoffice/libreoffice-3.3.1.2-crash-in-slidesorting.patch

13 lines
464 B
Diff

--- sd/source/ui/view/drviews1.cxx 2010-11-11 16:20:26.000000000 +0100
+++ sd/source/ui/view/drviews1.cxx-gil 2011-03-03 15:06:36.000000000 +0100
@@ -716,6 +716,9 @@
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)