summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-08-03 17:24:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-08-03 20:58:55 +0200
commite325a5442ab350e8eb66458aed98d38ce21aec06 (patch)
tree2a375195460f78f1db37a6af2aa5960c52d9b364
parentf680e5a441cecba4d238f031fc417ef3bccfd792 (diff)
Resolves: tdf#111308 crash after load designs with no design selected
Change-Id: Ia7d5e1d0c4c960700d94cfec01a8a01799f89d9a Reviewed-on: https://gerrit.libreoffice.org/40732 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/ui/dlg/sdpreslt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/sdpreslt.cxx b/sd/source/ui/dlg/sdpreslt.cxx
index 6fe9e2b2b35b..2cd521ef899b 100644
--- a/sd/source/ui/dlg/sdpreslt.cxx
+++ b/sd/source/ui/dlg/sdpreslt.cxx
@@ -121,7 +121,7 @@ void SdPresLayoutDlg::GetAttr(SfxItemSet& rOutAttrs)
{
aLayoutName = maName + "#" + maLayoutNames[ nId - 1 ];
}
- else
+ else if (nId)
{
aLayoutName = maLayoutNames[ nId - 1 ];
if( aLayoutName == maStrNone )