Commit b472006f authored by Maik Qualmann's avatar Maik Qualmann
Browse files

correction if special characters in tag names exist

CCBUGS: 345220
parent 0ffb27e3
......@@ -1421,7 +1421,13 @@ bool DMetadata::setImageTagsPath(const QStringList& tagsPath) const
for(int index = 0; index < splitTags.size(); index++)
{
int tagIndex = xmlTags.indexOf(QRegExp(QString("^<.*>%1$").arg(splitTags[index])));
int tagIndex = xmlTags.indexOf(category.arg(0) + splitTags[index]);
if (tagIndex == -1)
{
tagIndex = xmlTags.indexOf(category.arg(1) + splitTags[index]);
}
splitTags[index].insert(0, category.arg(index == splitTags.size() - 1 ? 1 : 0));
if (tagIndex == -1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment