Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

static void sp_style_read_istring ( SPIString val,
gchar const *  str 
) [static]

Set SPIString object from string.

Definition at line 2828 of file style.cpp.

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

Referenced by sp_style_merge_property(), and sp_style_read().

{
    g_free(val->value);

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


Generated by  Doxygen 1.6.0   Back to index