[Libreoffice-commits] core.git: Branch 'libreoffice-4-4-5' - sd/source
Caolán McNamara
caolanm at redhat.com
Thu Jul 9 10:22:26 PDT 2015
sd/source/ui/app/sdmod2.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 7294c12893cbc9d9e4779e8dac7ad69b617adf47
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Jul 8 11:02:08 2015 +0100
fix crash on loading presentation with page name field
regression from
commit 42b521f800a08b11432cf906ce1bdf9fcbfffdeb
Date: Wed Apr 22 23:31:43 2015 +0200
tdf#88056: Implement ODF import/export of page title field
Change-Id: I577a7c52836bbb13cc93910b4458aee5482ffc86
Reviewed-on: https://gerrit.libreoffice.org/16852
Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
Reviewed-by: Michael Stahl <mstahl at redhat.com>
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
Tested-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx
index 8f2d3a2..9049883 100644
--- a/sd/source/ui/app/sdmod2.cxx
+++ b/sd/source/ui/app/sdmod2.cxx
@@ -270,7 +270,8 @@ IMPL_LINK(SdModule, CalcFieldValueHdl, EditFieldInfo*, pInfo)
}
else
{
- aRepresentation = ( ( pDoc->GetDocumentType() == DOCUMENT_TYPE_IMPRESS )
+ DocumentType eDocType = pDoc ? pDoc->GetDocumentType() : DOCUMENT_TYPE_IMPRESS;
+ aRepresentation = ( ( eDocType == DOCUMENT_TYPE_IMPRESS )
? SdResId(STR_FIELD_PLACEHOLDER_SLIDENAME).toString()
: SdResId(STR_FIELD_PLACEHOLDER_PAGENAME).toString() );
}
More information about the Libreoffice-commits
mailing list