From 3e8e9c80dba74caf08db12948b1fb13cc352093b Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Fri, 4 May 2012 12:17:25 +0200 Subject: Printing id of task instead of node in toStdOut --- src/tasktree.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tasktree.cc b/src/tasktree.cc index c66e665..d652eae 100644 --- a/src/tasktree.cc +++ b/src/tasktree.cc @@ -248,10 +248,10 @@ void TaskTree::insertChild(node_t* parent, node_t* child) { static void printNode(node_t* node, std::string prefix) { if(!node) return; task_t t = node->data; - printf("%s/%u - %s\n", prefix.c_str(), node->id, t.title.c_str()); + printf("%s/%u - %s\n", prefix.c_str(), t.id, t.title.c_str()); char buf[4096]; - sprintf(buf, "%s/%u - %s", prefix.c_str(), node->id, t.title.c_str()); + sprintf(buf, "%s/%u - %s", prefix.c_str(), t.id, t.title.c_str()); NodeList::iterator it; for(it = node->children.begin(); it != node->children.end(); it++) { -- cgit v1.2.3