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/style.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/style.cpp')
| -rw-r--r-- | src/style.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/style.cpp b/src/style.cpp index 8b41bbbd7..fa8aed68e 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -1177,10 +1177,12 @@ void sp_style_filter_ref_changed(SPObject *old_ref, SPObject *ref, SPStyle *style) { if (old_ref) { + (dynamic_cast<SPFilter *>( old_ref ))->_refcount--; style->filter_modified_connection.disconnect(); } if ( SP_IS_FILTER(ref)) { + (dynamic_cast<SPFilter *>( ref ))->_refcount++; style->filter_modified_connection = ref->connectModified(sigc::bind(sigc::ptr_fun(&sp_style_filter_ref_modified), style)); } |
