diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-10 20:51:17 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-10 20:51:17 +0100 |
commit | 5d1327d332992df7d1c5052600bf20c166b6c28f (patch) | |
tree | 2cc472a20e9d1da5914fe2ebd5d70487ecf37de0 /src/table.cc | |
parent | 119dc3bfa3d71e5e2045b1f347ed6a9693028bbe (diff) |
minor rearrangement
Diffstat (limited to 'src/table.cc')
-rw-r--r-- | src/table.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/table.cc b/src/table.cc index f61584eb..835b3a2b 100644 --- a/src/table.cc +++ b/src/table.cc @@ -101,12 +101,12 @@ void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize) /* 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 @@ void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize) 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 ()); |