From 99cb30e28d4ee193f39e23464abbd7630cac8a2d Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Sat, 6 Oct 2012 23:56:27 +0200 Subject: Added virtual pad to SPFlowtext; removed old calls to virtual SPItem methods. (bzr r11608.1.46) --- src/sp-root.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/sp-root.cpp') diff --git a/src/sp-root.cpp b/src/sp-root.cpp index 2b1ab3884..96b9f4ef9 100644 --- a/src/sp-root.cpp +++ b/src/sp-root.cpp @@ -92,8 +92,8 @@ static void sp_root_class_init(SPRootClass *klass) sp_object_class->modified = sp_root_modified; sp_object_class->write = sp_root_write; - sp_item_class->show = sp_root_show; - sp_item_class->print = sp_root_print; +// sp_item_class->show = sp_root_show; +// sp_item_class->print = sp_root_print; } CRoot::CRoot(SPRoot* root) : CGroup(root) { @@ -673,9 +673,11 @@ void CRoot::onPrint(SPPrintContext* ctx) { sp_print_bind(ctx, root->c2p, 1.0); - if (((SPItemClass *) (parent_class))->print) { - ((SPItemClass *) (parent_class))->print(item, ctx); - } +// if (((SPItemClass *) (parent_class))->print) { +// ((SPItemClass *) (parent_class))->print(item, ctx); +// } + // CPPIFY: correct one? + CGroup::onPrint(ctx); sp_print_release(ctx); } -- cgit v1.2.3