[956] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r943 - branches/barnowl_sqlite/owl

daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:11:32 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: Sun, 17 Feb 2008 23:29:22 -0500 (EST)

Author: nelhage
Date: 2008-02-17 23:29:21 -0500 (Sun, 17 Feb 2008)
New Revision: 943

Modified:
   branches/barnowl_sqlite/owl/functions.c
   branches/barnowl_sqlite/owl/mainwin.c
Log:
Fix a segv paging messages


Modified: branches/barnowl_sqlite/owl/functions.c
===================================================================
--- branches/barnowl_sqlite/owl/functions.c	2008-02-18 03:59:47 UTC (rev 942)
+++ branches/barnowl_sqlite/owl/functions.c	2008-02-18 04:29:21 UTC (rev 943)
@@ -1673,8 +1673,8 @@
 
   if (offset==0) {
     /* Bail if the curmsg isn't the last one displayed */
-    if (owl_message_get_id(m) !=
-        owl_message_get_id(owl_mainwin_get_last_msg(owl_global_get_mainwin(&g)))) {
+    owl_message *cur = owl_view_iterator_get_message(owl_mainwin_get_last_msg(owl_global_get_mainwin(&g)));
+    if (owl_message_get_id(m) != owl_message_get_id(cur)) {
       owl_function_makemsg("The entire message is already displayed");
       return;
     }

Modified: branches/barnowl_sqlite/owl/mainwin.c
===================================================================
--- branches/barnowl_sqlite/owl/mainwin.c	2008-02-18 03:59:47 UTC (rev 942)
+++ branches/barnowl_sqlite/owl/mainwin.c	2008-02-18 04:29:21 UTC (rev 943)
@@ -140,7 +140,8 @@
     }
     wattroff(recwin, A_BOLD);
   }
-  // owl_view_iterator_prev(iter);
+
+  owl_view_iterator_prev(iter);
   owl_view_iterator_clone(&(mw->lastdisplayed), iter);
 
   wnoutrefresh(recwin);


home help back first fref pref prev next nref lref last post