Skip to content

Commit

Permalink
fix empty discrete lists crash on export
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasbaur committed Nov 18, 2024
1 parent f42e4e6 commit db86a59
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Controls/MainHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public partial class MainHandler
{

//Config
public static string BuildVersion = "1.2.9.3";
public static string BuildVersion = "1.2.9.4";
public static MEDIABACKEND MediaBackend = (Properties.Settings.Default.MediaBackend == "Hardware") ? MEDIABACKEND.MEDIAKIT : MEDIABACKEND.MEDIA;
public static bool ENABLE_PYTHON = Properties.Settings.Default.EnablePython;
public static bool ENABLE_LIGHTNING = Properties.Settings.Default.EnableLightning;
Expand Down
8 changes: 6 additions & 2 deletions Database/DatabaseHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4671,10 +4671,14 @@ public static AnnoList ConvertDiscreteAnnoListToContinuousList(AnnoList annolist
foreach (DatabaseAnnotation anno in annos)
{
AnnoList annoList = LoadAnnoList(anno, false);
if (annoList[annoList.Count - 1].Stop > length)
if (annoList.Count > 0)
{
length = (int)(annoList[annoList.Count-1].Stop * sr);
if (annoList[annoList.Count - 1].Stop > length)
{
length = (int)(annoList[annoList.Count - 1].Stop * sr);
}
}

}
}

Expand Down
Binary file modified bin/nova.exe
Binary file not shown.

0 comments on commit db86a59

Please sign in to comment.