[goffice] compilation: warning fix.



commit 4e3eea14f9d17865cd9d590d8269e2c3f8e61a35
Author: Morten Welinder <terra gnome org>
Date:   Sat Dec 5 15:40:53 2009 -0500

    compilation: warning fix.

 goffice/canvas/goc-item.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/goffice/canvas/goc-item.c b/goffice/canvas/goc-item.c
index d2c0d8d..f4cc872 100644
--- a/goffice/canvas/goc-item.c
+++ b/goffice/canvas/goc-item.c
@@ -520,11 +520,10 @@ goc_item_bounds_changed (GocItem *item)
 	g_return_if_fail (GOC_IS_ITEM (item));
 	if (item->cached_bounds) {
 		goc_item_invalidate (item);
-		item->cached_bounds = FALSE;
-		while (item->parent) {
-			item = item->parent;
+		do {
 			item->cached_bounds = FALSE;
-		}
+			item = GOC_ITEM (item->parent);
+		} while (item);
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]