TDB2 & Task

- Fixed next_id handling in load_tasks.
- Removed unnecessary load in next_id.
- Added missing encode call.
index 8c0d2e9..3d1b7ce 100644
--- a/src/Task.cpp
+++ b/src/Task.cpp
@@ -528,7 +528,7 @@ std::string Task::composeF4 () const
     {
       ff4 += (first ? "" : " ")
            + it->first
-           + ":\"" + json::encode (it->second) + "\"";
+           + ":\"" + encode (json::encode (it->second)) + "\"";
       first = false;
     }
   }
This commit is contained in:
Paul Beckingham 2011-08-27 11:18:43 -04:00
parent 1392c8e619
commit 17dfbabb39
2 changed files with 5 additions and 8 deletions

View file

@ -528,7 +528,7 @@ std::string Task::composeF4 () const
{
ff4 += (first ? "" : " ")
+ it->first
+ ":\"" + json::encode (it->second) + "\"";
+ ":\"" + encode (json::encode (it->second)) + "\"";
first = false;
}
}