diff options
| author | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-04-06 22:22:07 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-04-06 22:22:07 +0000 |
| commit | 15f9682879d6860d8c84a1cb79a4a34e0848a1bc (patch) | |
| tree | 3b94cd60e7b9add96b85fe3da1d8a3b26c2d9cf1 /src/sp-lpe-item.cpp | |
| parent | Properly allow effect stacking with knotholders (and add extra LPE functional... (diff) | |
| parent | noop: improve code style in sp-lpe-item.cpp (diff) | |
| download | inkscape-15f9682879d6860d8c84a1cb79a4a34e0848a1bc.tar.gz inkscape-15f9682879d6860d8c84a1cb79a4a34e0848a1bc.zip | |
Updaet to trunk
(bzr r13090.1.49)
Diffstat (limited to 'src/sp-lpe-item.cpp')
| -rw-r--r-- | src/sp-lpe-item.cpp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp index 712a0d579..07fa6147b 100644 --- a/src/sp-lpe-item.cpp +++ b/src/sp-lpe-item.cpp @@ -56,20 +56,21 @@ typedef std::list<std::string> HRefList; static std::string patheffectlist_write_svg(PathEffectList const & list); static std::string hreflist_write_svg(HRefList const & list); -SPLPEItem::SPLPEItem() : SPItem() { - this->path_effects_enabled = 1; - - this->path_effect_list = new PathEffectList(); - this->current_path_effect = NULL; - - this->lpe_modified_connection_list = new std::list<sigc::connection>(); +SPLPEItem::SPLPEItem() + : SPItem() + , path_effects_enabled(1) + , path_effect_list(new PathEffectList()) + , lpe_modified_connection_list(new std::list<sigc::connection>()) + , current_path_effect(NULL) + , lpe_helperpaths() +{ } SPLPEItem::~SPLPEItem() { } void SPLPEItem::build(SPDocument *document, Inkscape::XML::Node *repr) { - this->readAttr( "inkscape:path-effect" ); + this->readAttr( "inkscape:path-effect" ); SPItem::build(document, repr); } @@ -172,9 +173,9 @@ void SPLPEItem::set(unsigned int key, gchar const* value) { } void SPLPEItem::update(SPCtx* ctx, unsigned int flags) { - SPItem::update(ctx, flags); + SPItem::update(ctx, flags); - // update the helperpaths of all LPEs applied to the item + // update the helperpaths of all LPEs applied to the item // TODO: re-add for the new node tool } @@ -206,11 +207,11 @@ Inkscape::XML::Node* SPLPEItem::write(Inkscape::XML::Document *xml_doc, Inkscape */ bool SPLPEItem::performPathEffect(SPCurve *curve) { if (!this) { - return false; + return false; } if (!curve) { - return false; + return false; } if (this->hasPathEffect() && this->pathEffectsEnabled()) { @@ -268,7 +269,7 @@ bool SPLPEItem::performPathEffect(SPCurve *curve) { // CPPIFY: make pure virtual void SPLPEItem::update_patheffect(bool /*write*/) { - //throw; + //throw; } /** |
