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

int sp_filter_get_image_name ( SPFilter *  filter,
gchar const *  name 
)

Returns a slot number for given image name, or -1 for unknown name.

Definition at line 493 of file sp-filter.cpp.

                                                                  {
    gchar *name_copy = strdup(name);
    map<gchar *, int, ltstr>::iterator result = filter->_image_name->find(name_copy);
    free(name_copy);
    if (result == filter->_image_name->end()) return -1;
    else return (*result).second;
}


Generated by  Doxygen 1.6.0   Back to index