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

static bool sp_gradient_invalidate_vector ( SPGradient gr  )  [static]

Return true iff change made.

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

References SPGradientVector::built, SPGradient::color, SPGradientVector::stops, and SPGradient::vector.

Referenced by sp_gradient_child_added(), sp_gradient_modified(), and sp_gradient_remove_child().

{
    bool ret = false;

    if (gr->color != NULL) {
        g_free(gr->color);
        gr->color = NULL;
        ret = true;
    }

    if (gr->vector.built) {
        gr->vector.built = false;
        gr->vector.stops.clear();
        ret = true;
    }

    return ret;
}


Generated by  Doxygen 1.6.0   Back to index