From 4d388afbd9210eeb9fd94e7907074762f38e106b Mon Sep 17 00:00:00 2001 From: LQ Date: Wed, 25 Jul 2018 14:03:11 +0800 Subject: [PATCH] LastSelected need clear when new project loaded LastSelected need clear when new project load,Otherwise will raise index exceed frames length error when you previous project LastSelected number is larger than new project frames number. --- ScreenToGif/Windows/Editor.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ScreenToGif/Windows/Editor.xaml.cs b/ScreenToGif/Windows/Editor.xaml.cs index a01171ac..5b229c75 100644 --- a/ScreenToGif/Windows/Editor.xaml.cs +++ b/ScreenToGif/Windows/Editor.xaml.cs @@ -3488,7 +3488,7 @@ internal void LoadProject(ProjectInfo project, bool isNew = true, bool clear = t { Cursor = Cursors.AppStarting; IsLoading = true; - + LastSelected = -1; //lastSelected need clear when new porject loaded FrameListView.Items.Clear(); ZoomBoxControl.Zoom = 1; @@ -6711,4 +6711,4 @@ internal async Task SendFeedback() #endregion } -} \ No newline at end of file +}