diff options
Diffstat (limited to 'i18nutil/source/utility/paper.cxx')
-rw-r--r-- | i18nutil/source/utility/paper.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx index 3a6e98a28d4f..657496abcc44 100644 --- a/i18nutil/source/utility/paper.cxx +++ b/i18nutil/source/utility/paper.cxx @@ -271,8 +271,7 @@ PaperInfo PaperInfo::getSystemDefaultPaper() if (ePaper == PAPER_USER) { - bHalve = !rtl_str_shortenedCompareIgnoreAsciiCase_WithLength( - aPaper.getStr(), aPaper.getLength(), "half", 4, 4); + bHalve = !aPaper.startsWith("half"); if (bHalve) aPaper = aPaper.copy(4); ePaper = PaperInfo::fromPSName(aPaper); |