Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
digiKam
Commits
b472006f
Commit
b472006f
authored
May 01, 2015
by
Maik Qualmann
Browse files
correction if special characters in tag names exist
CCBUGS: 345220
parent
0ffb27e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/dmetadata/dmetadata.cpp
View file @
b472006f
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment