Fixed floating point comparisons
This commit is contained in:
1 parent
9d481cabc1
commit
5cd47f0537
13 files changed
+32
-32
No files matched your search
@@ -423,7 +423,7 @@ namespace VocaluxeLib.Menu.SongMenu
|
||||
_MedleyTagIcon.Visible = song.Medley.Source == EMedleySource.Tag;
|
||||
|
||||
float time = CBase.Sound.GetLength(_SongStream);
|
||||
if (song.Finish != 0)
|
||||
if (Math.Abs(song.Finish) > 0.001)
|
||||
time = song.Finish;
|
||||
|
||||
time -= song.Start;
|
||||
|
||||
Reference in new issue
Block a user