summaryrefslogtreecommitdiff
path: root/src/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cc')
-rw-r--r--src/item.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/item.cc b/src/item.cc
index f45e87e3..93aba0b3 100644
--- a/src/item.cc
+++ b/src/item.cc
@@ -140,7 +140,8 @@ void item_t::parse_tags(const char * p, int current_year)
q = std::strtok(NULL, " \t")) {
const std::size_t len = std::strlen(q);
if (! tag.empty()) {
- set_tag(tag, string(p + (q - buf.get())));
+ if (! has_tag(tag))
+ set_tag(tag, string(p + (q - buf.get())));
break;
}
else if (q[0] == ':' && q[len - 1] == ':') { // a series of tags