Always check if the graph is too small to draw it

This commit is contained in:
Simon Steinbeiss
2014-12-19 12:06:50 +01:00
parent 341d93bb9f
commit cd1309d97f

View File

@@ -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);