| commit | e07f4f2dbf65ee723f8bdf05587085783257dd5a | [log] |
|---|---|---|
| author | Patrick Luby <plubius@libreoffice.org> | Fri Dec 08 15:11:45 2023 -0500 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Mon Dec 11 14:04:41 2023 +0100 |
| tree | f1b9f561405f06be26f07bac445b9b0e26878ecb | |
| parent | b521e0c8b04cef4c0140704c3c5221d2b645f8e4 [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> (cherry picked from commit 48748d5b5a89f27e1d2f610152145e3a19eda9a9) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160474 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx index f6871e6..10b08a0 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)