From 3d88f77ec6bb32050248c6c040ca47380f39cf26 Mon Sep 17 00:00:00 2001 From: Kyle Howell Date: Sun, 25 Sep 2016 16:55:34 -0600 Subject: [PATCH] Fixed TAStudio crash when deselecting "Show Player X". The horizontal scrollbar was not updated which caused an exception when scrolling to the right. --- BizHawk.Client.EmuHawk/CustomControls/InputRoll.cs | 2 +- BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs | 2 +- BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.EmuHawk/CustomControls/InputRoll.cs b/BizHawk.Client.EmuHawk/CustomControls/InputRoll.cs index 14aeeb842b..e8de9b4b0a 100644 --- a/BizHawk.Client.EmuHawk/CustomControls/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/CustomControls/InputRoll.cs @@ -2027,7 +2027,7 @@ namespace BizHawk.Client.EmuHawk } } - // TODO: this shouldn't be exposed. But in order to not expose it, each RollColumn must have a chane callback, and all property changes must call it, it is quicker and easier to just call this when needed + // TODO: this shouldn't be exposed. But in order to not expose it, each RollColumn must have a change callback, and all property changes must call it, it is quicker and easier to just call this when needed public void ColumnsChanged() { int pos = 0; diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs index 5551af954c..fe97b05519 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs @@ -1176,8 +1176,8 @@ namespace BizHawk.Client.EmuHawk } CurrentTasMovie.FlagChanges(); + TasView.AllColumns.ColumnsChanged(); RefreshTasView(); - }; ColumnsSubMenu.DropDownItems.Add(item); diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs index 453e4bf494..0f41cf701b 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs @@ -464,7 +464,7 @@ namespace BizHawk.Client.EmuHawk column.Visible = false; } - TasView.AllColumns.ColumnsChanged(); + TasView.AllColumns.ColumnsChanged(); // Patterns int bStart = 0;