From f266e0569e954e68429c9ee4646275e904463d9a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 15 Jul 2012 14:06:37 +0100 Subject: Fix input type test to compare correct variable. --- css/select.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'css') diff --git a/css/select.c b/css/select.c index 1ea818f0e..174b73e35 100644 --- a/css/select.c +++ b/css/select.c @@ -2494,15 +2494,15 @@ node_presentational_hint_width(nscss_select_ctx *ctx, } if (input) { - err = dom_element_get_attribute(node, - nscss_dom_string_type, - &width); + err = dom_element_get_attribute(node, + nscss_dom_string_type, &width); if ((err != DOM_NO_ERR) || (width == NULL)) { return CSS_PROPERTY_NOT_SET; } - if (dom_string_isequal(name, nscss_dom_string_text) || - dom_string_isequal(name, nscss_dom_string_password)) { + if (dom_string_isequal(width, nscss_dom_string_text) || + dom_string_isequal(width, + nscss_dom_string_password)) { hint->data.length.unit = CSS_UNIT_EX; } -- cgit v1.2.3