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

void sp_gradient_ensure_vector ( SPGradient gradient  ) 

Forces vector to be built, if not present (i.e. changed)

Forces the vector to be built, if not present (i.e., changed).

Precondition:
SP_IS_GRADIENT(gradient).

Definition at line 715 of file sp-gradient.cpp.

References SPGradientVector::built, sp_gradient_rebuild_vector(), and SPGradient::vector.

Referenced by sp_gradient_rebuild_vector().

{
    g_return_if_fail(gradient != NULL);
    g_return_if_fail(SP_IS_GRADIENT(gradient));

    if (!gradient->vector.built) {
        sp_gradient_rebuild_vector(gradient);
    }
}


Generated by  Doxygen 1.6.0   Back to index