Logo Search packages:      
Sourcecode: inkscape version File versions

enum CRStatus cr_style_copy ( CRStyle *  a_dest,
CRStyle *  a_src 

Copies a style data structure into another. TODO: this is actually broken because it's based on memcpy although some data stuctures of CRStyle should be properly duplicated.

a_dest the destination style datastructure
a_src the source style datastructure.
CR_OK upon succesfull completion, an error code otherwise

Definition at line 2306 of file cr-style.c.

Referenced by cr_style_dup().

        g_return_val_if_fail (a_dest && a_src, CR_BAD_PARAM_ERROR);

        memcpy (a_dest, a_src, sizeof (CRStyle));
        return CR_OK;

Generated by  Doxygen 1.6.0   Back to index