Skip to content

Commit

Permalink
Fix FindTileLocation results zoom (#1792)
Browse files Browse the repository at this point in the history
After 253be23 item string can have two colons. Always get last split element
  • Loading branch information
euamotubaina authored Nov 4, 2022
1 parent 1125a61 commit 99a1b8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TEdit/Editor/Plugins/FindTileLocationResultView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ private void ListBoxMouseDoubleClick(object sender, MouseButtonEventArgs e)
TextBlock item = e.OriginalSource as TextBlock;
if ( !string.IsNullOrEmpty(item.Text) )
{
string[] positions = item.Text.Split(':')[1].Trim().Split(splitters);
string[] split = item.Text.Split(':');
string[] positions = split[split.Length - 1].Trim().Split(splitters);
if (positions.Length == 2)
{
int x = 0;
Expand Down

0 comments on commit 99a1b8a

Please sign in to comment.