Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_style_read_ifloat ( SPIFloat val,
gchar const *  str 
) [static]

Set SPIFloat object from string.

Definition at line 2741 of file style.cpp.

References SPIFloat::inherit, SPIFloat::set, and SPIFloat::value.

Referenced by sp_style_merge_property(), and sp_style_read_pfloat().

{
    if (!strcmp(str, "inherit")) {
        val->set = TRUE;
        val->inherit = TRUE;
    } else {
        gfloat value;
        if (sp_svg_number_read_f(str, &value)) {
            val->set = TRUE;
            val->inherit = FALSE;
            val->value = value;
        }
    }
}


Generated by  Doxygen 1.6.0   Back to index