changeset 665:27f80ecc3792

fix missing Length -> CssLength conversion
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Tue, 09 Dec 2008 22:39:19 +0100
parents 109eaf60aea2
children 2ad662fb50db
files src/html.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/html.cc	Tue Dec 09 22:24:03 2008 +0100
+++ b/src/html.cc	Tue Dec 09 22:39:19 2008 +0100
@@ -1382,7 +1382,7 @@
    char *end;
 
    l = Html_parse_length_or_multi_length (attr, &end);
-   if (isRelLength (l))
+   if (CSS_LENGTH_TYPE (l) == CSS_LENGTH_TYPE_RELATIVE)
       /* not allowed as &Length; */
       l = CSS_CREATE_LENGTH(0.0, CSS_LENGTH_TYPE_AUTO);
    else {