Kaydet (Commit) 922e935c authored tarafından Michael Stahl's avatar Michael Stahl

i18nutil: fix invalid string copy that prevents startup

(regression from ef513fd4)

Change-Id: Ia3ba5ba853648a4b180d6cc2318a4780fc87bf4d
üst 22c6554c
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment