# HG changeset patch # User Mikael Berthe # Date 1138571855 -3600 # Node ID f3945593432e909fec5d4b278f668920729ee402 # Parent 8dc602a246a4060b386e69eb06abb8f361241992 Small fix in scr_DrawRoster() Improve changeset 1f8987e0e56c, sometimes the offset was not set to the best value. diff -r 8dc602a246a4 -r f3945593432e mcabber/src/screen.c --- a/mcabber/src/screen.c Sun Jan 29 12:00:04 2006 +0100 +++ b/mcabber/src/screen.c Sun Jan 29 22:57:35 2006 +0100 @@ -734,7 +734,9 @@ // Update offset if necessary // a) Try to show as many buddylist items as possible i = g_list_length(buddylist) - maxy; - if (0 <= i && i < offset) + if (i < 0) + i = 0; + if (i < offset) offset = i; // b) Make sure the current_buddy is visible i = g_list_position(buddylist, current_buddy);