summaryrefslogtreecommitdiff
path: root/i18nutil
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-05-29 17:08:06 +0200
committerMichael Stahl <mstahl@redhat.com>2017-05-29 17:09:22 +0200
commit922e935c8812b1c1f94347bdbd7cdf277a75644e (patch)
treeb779dd1a0d0ea9fb029bbf5af9fc00a0916a9531 /i18nutil
parent22c6554c98e210e48813127b5f460d633bae08e7 (diff)
i18nutil: fix invalid string copy that prevents startup
(regression from ef513fd4b049b214a03fbe6e62a5ea43680a7a9b) Change-Id: Ia3ba5ba853648a4b180d6cc2318a4780fc87bf4d
Diffstat (limited to 'i18nutil')
-rw-r--r--i18nutil/source/utility/paper.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx
index 657496abcc44..7e250024ebe4 100644
--- a/i18nutil/source/utility/paper.cxx
+++ b/i18nutil/source/utility/paper.cxx
@@ -271,9 +271,10 @@ PaperInfo PaperInfo::getSystemDefaultPaper()
if (ePaper == PAPER_USER)
{
- bHalve = !aPaper.startsWith("half");
- if (bHalve)
+ if (aPaper.startsWith("half"))
+ {
aPaper = aPaper.copy(4);
+ }
ePaper = PaperInfo::fromPSName(aPaper);
}