Bug fix - hang on cygwin when task updated.
- Fixed bug that caused a hang on cygwin, when a task with multiple annotations was edited (thanks to Joe Pulliam).
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
1.8.4 ()
|
1.8.4 ()
|
||||||
+ Fixed bug that caused wait: dates to not be properly rendered in a
|
+ Fixed bug that caused wait: dates to not be properly rendered in a
|
||||||
readable and preferred format with the "edit" command.
|
readable and preferred format with the "edit" command.
|
||||||
|
+ Fixed bug that caused a hang on cygwin, when a task with multiple
|
||||||
|
annotations was edited (thanks to Joe Pulliam).
|
||||||
|
|
||||||
------ old releases ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|||||||
10
src/Task.cpp
10
src/Task.cpp
@@ -441,10 +441,14 @@ void Task::addAnnotation (const std::string& description)
|
|||||||
void Task::removeAnnotations ()
|
void Task::removeAnnotations ()
|
||||||
{
|
{
|
||||||
// Erase old annotations.
|
// Erase old annotations.
|
||||||
Record::iterator i;
|
Record::iterator i = this->begin ();
|
||||||
for (i = this->begin (); i != this->end (); ++i)
|
while (i != this->end ())
|
||||||
|
{
|
||||||
if (i->first.substr (0, 11) == "annotation_") // No i18n
|
if (i->first.substr (0, 11) == "annotation_") // No i18n
|
||||||
this->erase (i);
|
this->erase (i++);
|
||||||
|
else
|
||||||
|
i++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user