diff options
| author | Markus Engel <markus.engel@tum.de> | 2012-08-21 12:41:57 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2012-08-21 12:41:57 +0000 |
| commit | a6ee236472ac07f5719e41bc396163d485757dc6 (patch) | |
| tree | 4a5e56a8d30fd47cb056bff81627298928557b14 /src/sp-use.cpp | |
| parent | Added "virtual pad" to (diff) | |
| download | inkscape-a6ee236472ac07f5719e41bc396163d485757dc6.tar.gz inkscape-a6ee236472ac07f5719e41bc396163d485757dc6.zip | |
Fixed some virtual function calls in SPItem and SPUse that led to crashes as they were not implemented in the base class.
(bzr r11608.1.36)
Diffstat (limited to 'src/sp-use.cpp')
| -rw-r--r-- | src/sp-use.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sp-use.cpp b/src/sp-use.cpp index eb089612b..1abda0d05 100644 --- a/src/sp-use.cpp +++ b/src/sp-use.cpp @@ -412,7 +412,12 @@ void CUse::onHide(unsigned int key) { SP_ITEM(use->child)->invoke_hide(key); } - CItem::onHide(key); + // CPPIFY: This doesn't make no sense. + // CItem::onHide is pure. What was the idea behind these lines? +// if (((SPItemClass *) parent_class)->hide) { +// ((SPItemClass *) parent_class)->hide(item, key); +// } +// CItem::onHide(key); } static void |
