mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:28:37 +02:00
This commit is contained in:
parent
a432752c39
commit
3cd1e318b2
1 changed files with 10 additions and 1 deletions
|
@ -93,7 +93,16 @@ QByteArray FSTReader::writeMapping(const QVariantHash& mapping) {
|
||||||
for (auto key : PREFERED_ORDER) {
|
for (auto key : PREFERED_ORDER) {
|
||||||
auto it = mapping.find(key);
|
auto it = mapping.find(key);
|
||||||
if (it != mapping.constEnd()) {
|
if (it != mapping.constEnd()) {
|
||||||
writeVariant(buffer, it);
|
if (key == FREE_JOINT_FIELD) { // writeVariant does not handle strings added using insertMulti.
|
||||||
|
for (auto multi : mapping.values(key)) {
|
||||||
|
buffer.write(key.toUtf8());
|
||||||
|
buffer.write(" = ");
|
||||||
|
buffer.write(multi.toByteArray());
|
||||||
|
buffer.write("\n");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
writeVariant(buffer, it);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue