PicturesListPID.insert(std::make_pair(*PhotoCount, PropertyValue));
} else if (PropertyName == wxT("PREF")){
-
- int PriorityNumber = 0;
- bool ValidNumber = TRUE;
-
- try{
- PriorityNumber = std::stoi(PropertyValue.ToStdString());
- }
-
- catch(std::invalid_argument &e){
- ValidNumber = FALSE;
- }
- if (ValidNumber == TRUE){
-
- PicturesListPref.erase(*PhotoCount);
- PicturesListPref.insert(std::make_pair(*PhotoCount, PriorityNumber));
-
- }
+ ProcessIntegerValue(this, &PicturesListPref, &PropertyValue, PhotoCount);
} else if (PropertyName == wxT("MEDIATYPE")){