Fix a missing tag on global tags merge (oops)

This commit is contained in:
Nick Treleaven 2012-05-27 17:11:30 +01:00
parent 915bb5989e
commit ffd3d739db

View File

@ -600,7 +600,8 @@ gboolean tm_tags_merge(GPtrArray *tags_array, gsize orig_len,
tags_array->pdata[i] = (cmp >= 0) ? *a-- : *b--;
if (a < tags_array->pdata)
{
memcpy(tags_array->pdata, copy, (b - copy) * sizeof(gpointer));
/* include remainder of copy as well as current value of b */
memcpy(tags_array->pdata, copy, ((b + 1) - copy) * sizeof(gpointer));
break;
}
if (b < copy)