summaryrefslogtreecommitdiff
path: root/i18nutil/source
diff options
context:
space:
mode:
Diffstat (limited to 'i18nutil/source')
-rw-r--r--i18nutil/source/utility/paper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx
index 7e250024ebe4..d7c55a76eb1a 100644
--- a/i18nutil/source/utility/paper.cxx
+++ b/i18nutil/source/utility/paper.cxx
@@ -271,7 +271,8 @@ PaperInfo PaperInfo::getSystemDefaultPaper()
if (ePaper == PAPER_USER)
{
- if (aPaper.startsWith("half"))
+ bHalve = aPaper.startsWith("half");
+ if (bHalve)
{
aPaper = aPaper.copy(4);
}