diff options
author | dodji <dodji@seketeli.org> | 2003-06-18 12:12:37 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@src.gnome.org> | 2003-06-18 12:12:37 +0000 |
commit | 0747aed7f2d145eb7d26f99599bdcdc9498ccc6a (patch) | |
tree | 45e6b91d6bfec93348b1ee2c08fdc6a83eee7c3d | |
parent | a938c19b86709a0c3ea97d2d0090a01861e38236 (diff) | |
download | libcroco-0747aed7f2d145eb7d26f99599bdcdc9498ccc6a.tar.gz |
fixed a small typo in the "@page" rule embedded in gv_at_page_buf.
2003-06-18 dodji <dodji@seketeli.org>
* tests/test4-main.c: fixed a small typo in the "@page" rule
embedded in gv_at_page_buf.
* src/parser/cr-parser.c: fixed a small bug in the
cr_parser_parse_page () function.
Dodji.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | src/parser/cr-parser.c | 7 | ||||
-rw-r--r-- | tests/test4-main.c | 2 |
4 files changed, 14 insertions, 5 deletions
@@ -1,3 +1,11 @@ +2003-06-18 dodji <dodji@seketeli.org> + + * tests/test4-main.c: fixed a small typo in the "@page" rule + embedded in gv_at_page_buf. + + * src/parser/cr-parser.c: fixed a small bug in the + cr_parser_parse_page () function. + 2003-06-17 dodji <dodji@seketeli.org> * tests/test4-main.c: added test_cr_statement_at_page_rule_parse () @@ -1,8 +1,6 @@ *coding:) -test/debug cr_statement_at_page_rule_parse_from_buf(). - Provide support for font selection. (hard, started well underway.) First make sure to be able to gather all the font related property values. diff --git a/src/parser/cr-parser.c b/src/parser/cr-parser.c index 2686199..579ae4f 100644 --- a/src/parser/cr-parser.c +++ b/src/parser/cr-parser.c @@ -4606,14 +4606,17 @@ cr_parser_parse_page (CRParser *a_this) status = cr_parser_parse_declaration (a_this, &property, &css_expression) ; - + ENSURE_PARSING_COND (status == CR_OK) + /* *call the relevant SAC handler here... */ if (PRIVATE (a_this)->sac_handler && PRIVATE (a_this)->sac_handler->property) { - cr_term_ref (css_expression) ; + if (css_expression) + cr_term_ref (css_expression) ; + PRIVATE (a_this)->sac_handler->property (PRIVATE (a_this)->sac_handler, property, diff --git a/tests/test4-main.c b/tests/test4-main.c index 1d48a39..4c77870 100644 --- a/tests/test4-main.c +++ b/tests/test4-main.c @@ -49,7 +49,7 @@ const guchar *gv_at_media_buf = ; const guchar *gv_at_page_buf = -"@page { size 8.5in 11in; margin: 2cm }" +"@page { size :8.5in 11in; margin: 2cm }" ; static void |