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:
@@ -339,7 +339,7 @@ ControlView::MessageReceived(BMessage* msg)
|
|||||||
else {
|
else {
|
||||||
fFontStyleindex = 0;
|
fFontStyleindex = 0;
|
||||||
|
|
||||||
if (familyindex < count_font_families())
|
if (familyindex < count_font_families() - 1)
|
||||||
familyindex++;
|
familyindex++;
|
||||||
else
|
else
|
||||||
familyindex = 0;
|
familyindex = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user