[gnote] Fixes a potential problem with tags when reading a note. (Maybe Closes #585048)



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]