diff options
author | Miguel de Icaza <miguel@gnu.org> | 2000-02-11 20:19:27 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2000-02-11 20:19:27 +0800 |
commit | 0d3051708edbde845787194bf94a0fd777379842 (patch) | |
tree | b953d78666211a88252c69ce5f85ec344da19369 /widgets/table/e-table-item.c | |
parent | d8fbc4fc0c01d174f04e8f2370131a5240764f4b (diff) | |
download | gsoc2013-evolution-0d3051708edbde845787194bf94a0fd777379842.tar.gz gsoc2013-evolution-0d3051708edbde845787194bf94a0fd777379842.tar.zst gsoc2013-evolution-0d3051708edbde845787194bf94a0fd777379842.zip |
Add nice assertion.
2000-02-11 Miguel de Icaza <miguel@gnu.org>
* e-table-item.c (eti_header_structure_changed): Add nice
assertion.
svn path=/trunk/; revision=1733
Diffstat (limited to 'widgets/table/e-table-item.c')
-rw-r--r-- | widgets/table/e-table-item.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 8455ed4824..130c51a85c 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -459,6 +459,11 @@ eti_header_structure_changed (ETableHeader *eth, ETableItem *eti) eti->cols = e_table_header_count (eti->header); eti->width = e_table_header_total_width (eti->header); + /* + * There should be at least one column + */ + g_assert (eti->cols != 0); + if (eti->cell_views){ eti_unrealize_cell_views (eti); eti_detach_cell_views (eti); |