diff options
author | Dodji Seketeli <dodji@gnome.org> | 2004-02-19 19:16:48 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@src.gnome.org> | 2004-02-19 19:16:48 +0000 |
commit | 06909a3577a9e2ef7b17b44bd894490b78cd3b68 (patch) | |
tree | bd2a66404239dba87090a8eb88be5210b45dce0f /src/cr-sel-eng.c | |
parent | 5c693b892418b7b0603037cc508dc8e313ce0046 (diff) | |
download | libcroco-06909a3577a9e2ef7b17b44bd894490b78cd3b68.tar.gz |
Fixed a bug that was "forgetting" all the properties gathered during the
2004-02-19 Dodji Seketeli <dodji@gnome.org>
* src/cr-sel-eng.c:
(cr_sel_eng_get_matched_properties_from_cascade): Fixed a bug
that was "forgetting" all the properties gathered during the
cascading algorithm but the last ones.
* tests/Makefile.am: a bit of cleanup here.
Diffstat (limited to 'src/cr-sel-eng.c')
-rw-r--r-- | src/cr-sel-eng.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cr-sel-eng.c b/src/cr-sel-eng.c index 4e47c96..f2a730d 100644 --- a/src/cr-sel-eng.c +++ b/src/cr-sel-eng.c @@ -1388,7 +1388,8 @@ cr_sel_eng_get_matched_properties_from_cascade (CRSelEng *a_this, { CRStatement ** stmts_tab = NULL ; enum CRStatus status = CR_OK ; - gulong tab_size = 0, tab_len = 0, index = 0, i = 0 ; + gulong tab_size = 0, tab_len = 0, i = 0, total_tab_len = 0, + index = 0; enum CRStyleOrigin origin = 0 ; gushort stmts_chunck_size = 8 ; CRStyleSheet *sheet = NULL ; @@ -1441,8 +1442,8 @@ cr_sel_eng_get_matched_properties_from_cascade (CRSelEng *a_this, cr_utils_trace_info ("Error while running " "selector engine") ; goto error ; - } - + } + total_tab_len += tab_len ; } /* @@ -1451,7 +1452,7 @@ cr_sel_eng_get_matched_properties_from_cascade (CRSelEng *a_this, *Make sure one can walk from the declaration to *the stylesheet. */ - for (i = 0 ; i < tab_len ; i ++) + for (i = 0 ; i < total_tab_len ; i ++) { CRStatement *stmt = stmts_tab[i] ; |