| commit | c92d01f82f3cbcb504a839cea5852e6c85a1d420 | [log] |
|---|---|---|
| author | Patrick Luby <plubius@libreoffice.org> | Fri Dec 08 15:11:45 2023 -0500 |
| committer | Patrick Luby <plubius@libreoffice.org> | Sat Dec 09 00:50:00 2023 +0100 |
| tree | e08c28f03085ec8997ba6d1db9bec311f245fd67 | |
| parent | 4a49d7a3a98ccdca52ea0a4475d05235a111ec0a [diff] |
tdf#158379 check if PageDesc's m_pPSName is a nullptr Change-Id: If9f6d695d40c1d55ee2dfbdf1e3523b33343d7ce Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160504 Tested-by: Jenkins Reviewed-by: Patrick Luby <plubius@libreoffice.org>
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx index f88510c..399b329 100644 --- a/i18nutil/source/utility/paper.cxx +++ b/i18nutil/source/utility/paper.cxx
@@ -400,8 +400,7 @@ PaperInfo::PaperInfo(tools::Long nPaperWidth, tools::Long nPaperHeight) OString PaperInfo::toPSName(Paper ePaper) { return static_cast<size_t>(ePaper) < nTabSize ? OString(aDinTab[ePaper].m_pPSName) : OString(); return static_cast<size_t>(ePaper) < nTabSize && aDinTab[ePaper].m_pPSName ? OString(aDinTab[ePaper].m_pPSName) : OString(); } Paper PaperInfo::fromPSName(const OString &rName)