diff --git a/openbr/plugins/gallery/lmdb.cpp b/openbr/plugins/gallery/lmdb.cpp index 8dea0f2..84a1176 100644 --- a/openbr/plugins/gallery/lmdb.cpp +++ b/openbr/plugins/gallery/lmdb.cpp @@ -119,7 +119,7 @@ class lmdbGallery : public Gallery if (!base->observedLabels.contains(label_str) ) - base->observedLabels[label_str] = base->observedLabels.size(); + base->observedLabels.insert(label_str, base->observedLabels.size()); datum.set_label(base->observedLabels[label_str]);