Fix off by one error in FontDemo. Should fix bug #1393.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21934 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2007-08-13 19:27:17 +00:00
parent 48658ad173
commit b70ffa1a18
+1 -1
View File
@@ -339,7 +339,7 @@ ControlView::MessageReceived(BMessage* msg)
else {
fFontStyleindex = 0;
if (familyindex < count_font_families())
if (familyindex < count_font_families() - 1)
familyindex++;
else
familyindex = 0;