diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-10-26 12:33:17 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-10-26 12:33:17 +0000 |
| commit | 7caf32d2b22680c603e4e88c76739c758630412c (patch) | |
| tree | daaf4e77d712bd802076980d7a077dc6562f3df7 /src/sp-gradient.cpp | |
| parent | Removed BSpline from tell by su_v (diff) | |
| parent | Fix memleak in reference counting introduced in r12532. (diff) | |
| download | inkscape-7caf32d2b22680c603e4e88c76739c758630412c.tar.gz inkscape-7caf32d2b22680c603e4e88c76739c758630412c.zip | |
Update to trunk
(bzr r12588.1.24)
Diffstat (limited to 'src/sp-gradient.cpp')
| -rw-r--r-- | src/sp-gradient.cpp | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/src/sp-gradient.cpp b/src/sp-gradient.cpp index adfff3609..04fb18cf3 100644 --- a/src/sp-gradient.cpp +++ b/src/sp-gradient.cpp @@ -418,23 +418,28 @@ void SPGradient::remove_child(Inkscape::XML::Node *child) void SPGradient::modified(guint flags) { if (flags & SP_OBJECT_CHILD_MODIFIED_FLAG) { - // CPPIFY + // CPPIFY + // This comparison has never worked (i. e. always evaluated to false), + // the right value would have been SP_TYPE_MESHGRADIENT //if( this->get_type() != SP_GRADIENT_TYPE_MESH ) { - if (!SP_IS_MESHGRADIENT(this)) { - this->invalidateVector(); - } else { - this->invalidateArray(); - } +// if (!SP_IS_MESHGRADIENT(this)) { +// this->invalidateVector(); +// } else { +// this->invalidateArray(); +// } + this->invalidateVector(); } if (flags & SP_OBJECT_STYLE_MODIFIED_FLAG) { - // CPPIFY + // CPPIFY + // see above //if( this->get_type() != SP_GRADIENT_TYPE_MESH ) { - if (!SP_IS_MESHGRADIENT(this)) { - this->ensureVector(); - } else { - this->ensureArray(); - } +// if (!SP_IS_MESHGRADIENT(this)) { +// this->ensureVector(); +// } else { +// this->ensureArray(); +// } + this->ensureVector(); } if (flags & SP_OBJECT_MODIFIED_FLAG) flags |= SP_OBJECT_PARENT_MODIFIED_FLAG; |
