diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-10-21 11:07:45 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-10-21 11:07:45 +0000 |
| commit | 80aa53929288d194a42fa4bc81560718598198ca (patch) | |
| tree | fa0038fa886fde41aaa394389fd6880216943309 /src/sp-gradient.cpp | |
| parent | Fix bug introduced in r12686. (diff) | |
| download | inkscape-80aa53929288d194a42fa4bc81560718598198ca.tar.gz inkscape-80aa53929288d194a42fa4bc81560718598198ca.zip | |
Fix mesh gradient tool.
Fixed bugs:
- https://launchpad.net/bugs/1239430
(bzr r12703)
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; |
