Skip to content

Commit

Permalink
MythUI: Fix <drawfrombottom> tag.
Browse files Browse the repository at this point in the history
A small error caused the presence of the <drawfrombottom> tag to align everything to the bottom, rather drawing from the bottom only if the value was true.
  • Loading branch information
Robert McNamara committed Aug 3, 2011
1 parent e02278a commit 6edb21c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/libs/libmythui/mythuibuttonlist.cpp
Expand Up @@ -2411,7 +2411,8 @@ bool MythUIButtonList::ParseElement(
else if (element.tagName() == "drawfrombottom")
{
m_drawFromBottom = parseBool(element);
m_alignment |= Qt::AlignBottom;
if (m_drawFromBottom)
m_alignment |= Qt::AlignBottom;
}
else if (element.tagName() == "searchposition")
{
Expand Down

0 comments on commit 6edb21c

Please sign in to comment.