Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_object_removeAttribute ( SPObject object,
gchar const *  key,
SPException ex 
)

Todo:
fixme: Exception if object is NULL? */

Definition at line 1432 of file sp-object.cpp.

References SPException::code, SPObject::repr, and sp_repr_set_attr().

{
    /* If exception is not clear, return */
    g_return_if_fail(SP_EXCEPTION_IS_OK(ex));

    /// \todo fixme: Exception if object is NULL? */
    if (!sp_repr_set_attr(object->repr, key, NULL)) {
        ex->code = SP_NO_MODIFICATION_ALLOWED_ERR;
    }
}


Generated by  Doxygen 1.6.0   Back to index