[984] in BarnOwl Developers
[D-O-H] r970 - branches/barnowl_sqlite/owl
daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:11:51 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@nelhage.com
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Mon, 25 Feb 2008 16:25:14 -0500 (EST)
Author: nelhage
Date: 2008-02-25 16:25:13 -0500 (Mon, 25 Feb 2008)
New Revision: 970
Modified:
branches/barnowl_sqlite/owl/functions.c
Log:
Deal with the case where we narrow to a class with fewer messages than
the current topmsg index correctly.
Modified: branches/barnowl_sqlite/owl/functions.c
===================================================================
--- branches/barnowl_sqlite/owl/functions.c 2008-02-25 19:19:05 UTC (rev 969)
+++ branches/barnowl_sqlite/owl/functions.c 2008-02-25 21:25:13 UTC (rev 970)
@@ -1203,9 +1203,8 @@
int savey, lines, y;
owl_view_iterator it;
- if (!owl_view_iterator_is_valid(curmsg)
- || !owl_view_iterator_is_valid(topmsg)) return;
-
+ if (!owl_view_iterator_is_valid(curmsg)) return;
+
/* If we're off the top of the screen then center */
if (owl_view_iterator_cmp(curmsg, topmsg) < 0) {
owl_view_iterator_init_start(topmsg, v);