Mercurial > dillo_port1.3
changeset 548:daf7700ad4bc
minor rearrangement
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> |
---|---|
date | Mon, 10 Nov 2008 20:51:17 +0100 |
parents | 27ef002a9652 |
children | d2939d1dc2be |
files | src/table.cc |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/table.cc Mon Nov 10 20:35:54 2008 +0100 +++ b/src/table.cc Mon Nov 10 20:51:17 2008 +0100 @@ -101,12 +101,12 @@ /* The style for the cells */ table_cell_props = new CssPropertyList (); - table_cell_props->ref (); if (border != -1) table_cell_props->set (CssProperty::CSS_PROPERTY_BORDER_WIDTH, border); if (dillo_dbg_rendering && border < 1) table_cell_props->set (CssProperty::CSS_PROPERTY_BORDER_WIDTH, 1); - table_cell_props->set (CssProperty::CSS_PROPERTY_PADDING, cellpadding); + if (cellpadding != -1) + table_cell_props->set (CssProperty::CSS_PROPERTY_PADDING, cellpadding); /** \todo figure out how to implement shaded colors with CSS */ table_cell_props->set (CssProperty::CSS_PROPERTY_BORDER_COLOR, 0x000000); @@ -114,6 +114,7 @@ S_TOP(html)->table_cell_props->unref (); S_TOP(html)->table_cell_props = table_cell_props; + S_TOP(html)->table_cell_props->ref (); table = new dw::Table(prefs.limit_text_width); DW2TB(html->dw)->addWidget (table, html->styleEngine->style ());