Re-introduce UTF-8 validation for EXIF panel

This commit is contained in:
Lawrence Lee 2023-02-12 17:47:07 -08:00
parent cf545abc87
commit cac76c18c0
No known key found for this signature in database
GPG Key ID: 048FF2B76A63895F

View File

@ -194,13 +194,10 @@ void ExifPanel::setImageData (const FramesMetaData* id)
idata = id;
}
void ExifPanel::addTag(const std::string &key, const std::pair<Glib::ustring, Glib::ustring> &label, const Glib::ustring &value, bool editable, bool edited)
void ExifPanel::addTag(const std::string &key, const std::pair<Glib::ustring, Glib::ustring> &label, const Glib::ustring &exifValue, bool editable, bool edited)
{
// TODO Re-fix #5923 if necessary
//if (!value.validate()) {
// value = "???";
//}
const Glib::ustring& value = exifValue.validate() ? exifValue : "???";
// auto root = exifTreeModel->children();