From 8e8046af6de68bfc27b1ba585133721d29e46b46 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sat, 4 Mar 2017 12:23:23 +0100 Subject: [PATCH] Print warning in case of empty pixmap in area --- src/util/area.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/area.c b/src/util/area.c index 15d9c78..bd8cbac 100644 --- a/src/util/area.c +++ b/src/util/area.c @@ -384,6 +384,8 @@ void draw_tree(Area *a) a->height, a->posx, a->posy); + else + fprintf(stderr, RED "%s %d: area %s has no pixmap!!!" RESET "\n", __FILE__, __LINE__, a->name); for (GList *l = a->children; l; l = l->next) draw_tree((Area *)l->data);