diff options
| author | Raphael Rosch <launchpad@insaner.com> | 2015-05-05 17:26:20 +0000 |
|---|---|---|
| committer | insaner <launchpad@insaner.com> | 2015-05-05 17:26:20 +0000 |
| commit | 5af8924e1de466080dc116b47edd7c8d8591652b (patch) | |
| tree | 0678bd6cdfaf4ca3f64ac43875bdf2a272ce89eb /src/sp-filter.cpp | |
| parent | Added color profile test and supporting fixture. (diff) | |
| download | inkscape-5af8924e1de466080dc116b47edd7c8d8591652b.tar.gz inkscape-5af8924e1de466080dc116b47edd7c8d8591652b.zip | |
show filter usage count
Fixed bugs:
- https://launchpad.net/bugs/1169123
(bzr r14111)
Diffstat (limited to 'src/sp-filter.cpp')
| -rw-r--r-- | src/sp-filter.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sp-filter.cpp b/src/sp-filter.cpp index 2bf1b11a6..1bde69dd1 100644 --- a/src/sp-filter.cpp +++ b/src/sp-filter.cpp @@ -79,6 +79,7 @@ void SPFilter::build(SPDocument *document, Inkscape::XML::Node *repr) { this->readAttr( "height" ); this->readAttr( "filterRes" ); this->readAttr( "xlink:href" ); + this->_refcount = 0; SPObject::build(document, repr); @@ -190,6 +191,15 @@ void SPFilter::set(unsigned int key, gchar const *value) { } } + +/** + * Returns the number of references to the filter. + */ +guint SPFilter::getRefCount() { + // NOTE: this is currently updated by sp_style_filter_ref_changed() in style.cpp + return _refcount; +} + /** * Receives update notifications. */ |
