Sfoglia il codice sorgente

FIX: AudioInfo - don't show invalid 'Track (zero-filled)' field

Alexander Koblov 2 anni fa
parent
commit
2efbd8515c
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      plugins/wdx/audioinfo/src/AudioInfo.lpr

+ 6 - 1
plugins/wdx/audioinfo/src/AudioInfo.lpr

@@ -139,7 +139,12 @@ begin
     7: Value:= DataAudio.Artist;
     8: Value:= DataAudio.Album;
     9: ValueI^:= DataAudio.Track;
-   10: Value:= Format('%.2d', [DataAudio.Track]);
+   10:
+       if DataAudio.Track = 0 then
+         Value:= EmptyStr
+       else begin
+         Value:= Format('%.2d', [DataAudio.Track]);
+       end;
    11: Value:= DataAudio.Date;
    12: Value:= DataAudio.Genre;
    13: Value:= DataAudio.Comment;