Thu Apr 7 08:42:54 2005 John Ellis <johne@verizon.net>
authorJohn Ellis <johne@verizon.net>
Thu, 7 Apr 2005 12:50:57 +0000 (12:50 +0000)
committerJohn Ellis <johne@verizon.net>
Thu, 7 Apr 2005 12:50:57 +0000 (12:50 +0000)
        * pixbuf-renderer.c (pr_queue_to_tiles): Fix logic in test for
        only_existing argument.

##### Note: GQview CVS on sourceforge is not always up to date, please use #####
##### an offical release when making enhancements and translation updates. #####

ChangeLog
src/pixbuf-renderer.c

index 3cbea8a..24858bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Apr  7 08:42:54 2005  John Ellis  <johne@verizon.net>
+
+       * pixbuf-renderer.c (pr_queue_to_tiles): Fix logic in test for
+       only_existing argument.
+
 Wed Apr  6 06:41:25 2005  John Ellis  <johne@verizon.net>
 
        * pan-view.c: Move pixbuf drawing into pixbuf_util.c.
index 78ed769..f8f76df 100644 (file)
@@ -2235,10 +2235,10 @@ static gint pr_queue_to_tiles(PixbufRenderer *pr, gint x, gint y, gint w, gint h
 
                        it = pr_tile_get(pr, i, j,
                                         (only_existing &&
-                                         i + pr->tile_width < pr->x_scroll &&
-                                         i > pr->x_scroll + pr->vis_width &&
-                                         j + pr->tile_height < pr->y_scroll &&
-                                         j > pr->y_scroll +pr->vis_height));
+                                         (i + pr->tile_width < pr->x_scroll ||
+                                          i > pr->x_scroll + pr->vis_width ||
+                                          j + pr->tile_height < pr->y_scroll ||
+                                          j > pr->y_scroll + pr->vis_height)));
                        if (it)
                                {
                                QueueData *qd;