From cd1309d97f34fdde575e44e40be2653a443a20ca Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Fri, 19 Dec 2014 12:06:50 +0100 Subject: [PATCH] Always check if the graph is too small to draw it --- src/process-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process-monitor.c b/src/process-monitor.c index 7c8af0c..d0e8d7e 100644 --- a/src/process-monitor.c +++ b/src/process-monitor.c @@ -223,10 +223,10 @@ xtm_process_monitor_paint (XtmProcessMonitor *monitor, cairo_t *cr) #else width = GTK_WIDGET (monitor)->allocation.width; height = GTK_WIDGET (monitor)->allocation.height; +#endif /* Don't draw anything if the graph is too small */ if (height < 3) return; -#endif /* Paint the graph's background box */ cairo_rectangle (cr, 0.0, 0.0, width, height);