summaryrefslogtreecommitdiffstats
path: root/src/sp-filter.cpp
diff options
context:
space:
mode:
authorRaphael Rosch <launchpad@insaner.com>2015-05-05 17:26:20 +0000
committerinsaner <launchpad@insaner.com>2015-05-05 17:26:20 +0000
commit5af8924e1de466080dc116b47edd7c8d8591652b (patch)
tree0678bd6cdfaf4ca3f64ac43875bdf2a272ce89eb /src/sp-filter.cpp
parentAdded color profile test and supporting fixture. (diff)
downloadinkscape-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.cpp10
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.
*/