Fix PreviewBar receiving a NaN Width value

This commit is contained in:
ColdVolcano 2017-12-08 15:46:09 -06:00
parent 9a395882a7
commit 1f762dc6d8
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ protected override void Update()
{
base.Update();
if (PreviewPlaying && Preview != null)
if (PreviewPlaying && Preview != null && Preview.IsLoaded)
{
PreviewBar.Width = (float)(Preview.CurrentTime / Preview.Length);
}