[goffice] compilation: warning fix.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [goffice] compilation: warning fix.
- Date: Sat, 5 Dec 2009 20:41:06 +0000 (UTC)
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]