Skip to content

Commit

Permalink
From jdonavan in HEAD: Fix a divide by zero
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.mythtv.org/svn/branches/release-0-18-fixes@6353 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
Jarod Wilson committed May 10, 2005
1 parent 61be22f commit 5b98457
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mythtv/libs/libmyth/uitypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,11 @@ class UIListType : public UIType
enum ItemArrows { ARROW_NONE, ARROW_LEFT, ARROW_RIGHT, ARROW_BOTH };

void SetCount(int cnt) { m_count = cnt;
m_selheight = (int)(m_area.height() / m_count); }
if (m_count)
m_selheight = (int)(m_area.height() / m_count);
else
m_selheight = 0;
}

void SetItemText(int, int, QString);
void SetItemText(int, QString);
Expand Down

0 comments on commit 5b98457

Please sign in to comment.