From 21eec067d83ec16d1d275483ad74972246212163 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 20 Oct 2008 15:53:58 +0000 Subject: Fix stupid. svn path=/trunk/libcss/; revision=5606 --- src/stylesheet.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/stylesheet.c') diff --git a/src/stylesheet.c b/src/stylesheet.c index 2091c1a..9d6f877 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -626,10 +626,14 @@ void css_stylesheet_dump_selector(css_selector *selector, FILE *target) switch (selector->type) { case CSS_SELECTOR_ELEMENT: - if (selector->specifics != NULL && - (selector->data.name.len != 1 || - selector->data.name.ptr[0] != '*')) { - css_stylesheet_dump_string(&selector->data.name, + if (selector->data.name.len == 1 && + selector->data.name.ptr[0] == '*' && + selector->specifics == NULL) { + css_stylesheet_dump_string(&selector->data.name, + target); + } else if (selector->data.name.len != 1 || + selector->data.name.ptr[0] != '*') { + css_stylesheet_dump_string(&selector->data.name, target); } break; -- cgit v1.2.3