diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-03 17:24:32 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-08-04 12:05:10 +0200 |
commit | 8d46259510c6ac39c74c10cc5e2422430e65b737 (patch) | |
tree | 099a6eb5b2b6a67ea93c0147a35ba894baa59da9 /sd | |
parent | 65b77bc45799c32d969debc2365d4e1aaacd5479 (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>
(cherry picked from commit e325a5442ab350e8eb66458aed98d38ce21aec06)
Reviewed-on: https://gerrit.libreoffice.org/40750
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 2b4ebf00d21f6305966c78f82336f9ac76425804)
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/sdpreslt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/sdpreslt.cxx b/sd/source/ui/dlg/sdpreslt.cxx index 6ee9b9a24b20..3e4f60861fea 100644 --- a/sd/source/ui/dlg/sdpreslt.cxx +++ b/sd/source/ui/dlg/sdpreslt.cxx @@ -120,7 +120,7 @@ void SdPresLayoutDlg::GetAttr(SfxItemSet& rOutAttrs) { aLayoutName = maName + "#" + maLayoutNames[ nId - 1 ]; } - else + else if (nId) { aLayoutName = maLayoutNames[ nId - 1 ]; if( aLayoutName == maStrNone ) |