Commit 8f6370364c936eaab85372bde1138bac3e15c3cf
1 parent
1eee9630
Qt compatibility fix
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/plugins/template.cpp
| ... | ... | @@ -107,7 +107,7 @@ class JSONTransform : public UntrainableMetaTransform |
| 107 | 107 | void project(const Template &src, Template &dst) const |
| 108 | 108 | { |
| 109 | 109 | dst.file = src.file; |
| 110 | - const QByteArray json = QJsonDocument(QJsonObject::fromVariantMap(src.file.localMetadata())).toJson(QJsonDocument::Compact); | |
| 110 | + const QByteArray json = QJsonDocument(QJsonObject::fromVariantMap(src.file.localMetadata())).toJson(); | |
| 111 | 111 | dst += cv::Mat(1, json.size(), CV_8UC1, (void*) json.data()); |
| 112 | 112 | } |
| 113 | 113 | }; | ... | ... |