Use rating from EXIF/XMP where available

This commit is contained in:
Eric Jiang
2019-05-16 17:09:46 -07:00
parent 7512093c20
commit 820024972a
5 changed files with 25 additions and 16 deletions

View File

@@ -2832,7 +2832,10 @@ void ProcParams::setDefaults()
exif.clear();
iptc.clear();
rank = 0;
// -1 means that there's no pp3 data with rank yet. In this case, the
// embedded Rating metadata should take precedence. -1 should never be
// written to pp3 on disk.
rank = -1;
colorlabel = 0;
inTrash = false;