Skip to content

Commit

Permalink
Fixes bug #11677
Browse files Browse the repository at this point in the history
  • Loading branch information
jyavenard committed Jul 14, 2013
1 parent c433237 commit 16af721
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions mythtv/libs/libmythui/mythuitext.cpp
Expand Up @@ -178,13 +178,16 @@ void MythUIText::SetTextFromMap(QHash<QString, QString> &map)

if (map.contains(key))
{
replacement = QString("%1%2%3%4")
.arg(regexp.cap(2))
.arg(regexp.cap(3))
.arg(map.value(key))
.arg(regexp.cap(6));
replaced = true;
}
if (!map.value(key).isEmpty())
{
replacement = QString("%1%2%3%4")
.arg(regexp.cap(2))
.arg(regexp.cap(3))
.arg(map.value(key))
.arg(regexp.cap(6));
}

tempString.replace(regexp.cap(0), replacement);
pos += regexp.matchedLength();
Expand Down

0 comments on commit 16af721

Please sign in to comment.