From a6ee236472ac07f5719e41bc396163d485757dc6 Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Tue, 21 Aug 2012 14:41:57 +0200 Subject: 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) --- src/sp-use.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/sp-use.cpp') 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 -- cgit v1.2.3