[gnote] Fixes a potential problem with tags when reading a note. (Maybe Closes #585048)
- From: Hubert Figuière <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnote] Fixes a potential problem with tags when reading a note. (Maybe Closes #585048)
- Date: Fri, 17 Jul 2009 23:44:12 +0000 (UTC)
commit 47cf17977ba4ea66a2fd76fb170689b86c072a4b
Author: Hubert Figuiere <hub figuiere net>
Date: Thu Jul 16 17:20:57 2009 -0400
Fixes a potential problem with tags when reading a note. (Maybe Closes #585048)
src/note.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/note.cpp b/src/note.cpp
index 43764b0..df9b97b 100644
--- a/src/note.cpp
+++ b/src/note.cpp
@@ -822,6 +822,7 @@ namespace gnote {
// Remove tags now, since a note with no tags has
// no "tags" element in the XML
std::list<Tag::Ptr> tag_list;
+ get_tags(tag_list);
for(std::list<Tag::Ptr>::const_iterator iter = tag_list.begin();
iter != tag_list.end(); ++iter) {
remove_tag(*iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]