report num rows visible and not > the number of actual rows

This commit is contained in:
Chris Danford
2005-08-15 16:01:39 +00:00
parent e18838aafa
commit 3c72edb0d4
+1 -1
View File
@@ -726,7 +726,7 @@ void ScreenOptions::PositionItems()
row.GetFrameDestination().PushSelf( L );
LuaHelpers::Push( pos, L );
LuaHelpers::Push( i, L );
LuaHelpers::Push( NUM_ROWS_SHOWN, L );
LuaHelpers::Push( min( (int)Rows.size(), (int)NUM_ROWS_SHOWN ), L );
lua_call( L, 4, 0 ); // 4 args, 0 results
LUA->Release(L);