From 94ce784f332eeac7a1d2181e0bd0521a75d59b04 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 30 Aug 2011 00:35:45 -0400 Subject: [PATCH] Bug - The 'duplicate' command used TDB2::commit, but TDB::nextId. --- src/commands/CmdDuplicate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/CmdDuplicate.cpp b/src/commands/CmdDuplicate.cpp index 300f8fa64..0519ee955 100644 --- a/src/commands/CmdDuplicate.cpp +++ b/src/commands/CmdDuplicate.cpp @@ -106,7 +106,7 @@ int CmdDuplicate::execute (std::string& output) // TODO This should be a call in to feedback.cpp. if (context.verbose ("new-id")) - out << format (STRING_CMD_ADD_FEEDBACK, context.tdb.nextId ()) + "\n"; + out << format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n"; context.footnote (onProjectChange (dup)); }