Remove warning for big images in fixed-size cells; images are always scaled down...
authorEmden R. Gansner <erg@alum.mit.edu>
Thu, 9 Jan 2014 22:41:27 +0000 (17:41 -0500)
committerEmden R. Gansner <erg@alum.mit.edu>
Thu, 9 Jan 2014 22:41:27 +0000 (17:41 -0500)
lib/common/htmltable.c

index d298b4b74ef6d374e36abb41d39ac4b6c0680821..8f19b9c754b950361881be43218afee025d2a02e 100644 (file)
@@ -1154,7 +1154,7 @@ size_html_cell(graph_t * g, htmlcell_t * cp, htmltbl_t * parent,
 
     if (cp->data.flags & FIXED_FLAG) {
        if (cp->data.width && cp->data.height) {
-           if ((cp->data.width < sz.x) || (cp->data.height < sz.y)) {
+           if (((cp->data.width < sz.x) || (cp->data.height < sz.y)) && (cp->child.kind != HTML_IMAGE)) {
                agerr(AGWARN, "cell size too small for content\n");
                rv = 1;
            }