Skip to content

Commit

Permalink
Allow rewriting the same embedded picture [#170]
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeugma440 committed Nov 20, 2022
1 parent b41f6bd commit 68a54b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ATL/Entities/Track.cs
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,9 @@ private TagData toTagData()
// Detect and tag deleted pictures (=those which were in initialEmbeddedPictures and do not appear in embeddedPictures anymore)
foreach (PictureInfo picInfo in initialEmbeddedPictures)
{
if (!currentEmbeddedPictures.Contains(picInfo))
PictureInfo targetPic = currentEmbeddedPictures.FirstOrDefault(pi => picInfo.EqualsProper(pi));

if (null == targetPic)
{
PictureInfo picToDelete = new PictureInfo(picInfo);
picToDelete.MarkedForDeletion = true;
Expand Down

0 comments on commit 68a54b8

Please sign in to comment.