From e6c03c6de8c4e16c55b140793c8e2acaad33a593 Mon Sep 17 00:00:00 2001 From: Urs Fleisch Date: Sun, 3 Jan 2021 19:04:03 +0100 Subject: [PATCH] Create an APE tag when reading a WavPack file without tags Now it is handled in the same way as for other tags with a TagUnion. Without this patch, WavPack files without tags cannot be edited via a FileRef. --- taglib/wavpack/wavpackfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taglib/wavpack/wavpackfile.cpp b/taglib/wavpack/wavpackfile.cpp index 01bdba36..56b99393 100644 --- a/taglib/wavpack/wavpackfile.cpp +++ b/taglib/wavpack/wavpackfile.cpp @@ -263,7 +263,7 @@ void WavPack::File::read(bool readProperties) d->APELocation = d->APELocation + APE::Footer::size() - d->APESize; } - if(d->ID3v1Location >= 0) + if(d->ID3v1Location < 0) APETag(true); // Look for WavPack audio properties