From 80c417e93d1d7eefdc5ed875ad856bae35541a28 Mon Sep 17 00:00:00 2001 From: niksedk Date: Thu, 27 Oct 2011 07:49:13 +0000 Subject: [PATCH] Fixed crash in non-English languages due to new shortcut - thx karmazyn git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@753 99eadd0c-20b8-1223-b5c4-2a2b2df33de2 --- src/Forms/Settings.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Forms/Settings.cs b/src/Forms/Settings.cs index 255a49b9d..2ab52bec4 100644 --- a/src/Forms/Settings.cs +++ b/src/Forms/Settings.cs @@ -950,14 +950,15 @@ namespace Nikse.SubtitleEdit.Forms if (node.Text.Contains("[")) { string text = node.Text.Substring(0, node.Text.IndexOf("[")).Trim(); - if (text == (Configuration.Settings.Language.Settings.VerticalZoom).Replace("&", string.Empty)) - Configuration.Settings.Shortcuts.WaveformVerticalZoom = GetShortcut(node.Text); - else if (text == (Configuration.Settings.Language.WaveForm.ZoomIn).Replace("&", string.Empty)) + if (text == (Configuration.Settings.Language.WaveForm.ZoomIn).Replace("&", string.Empty)) Configuration.Settings.Shortcuts.WaveformZoomIn = GetShortcut(node.Text); else if (text == (Configuration.Settings.Language.WaveForm.ZoomOut).Replace("&", string.Empty)) Configuration.Settings.Shortcuts.WaveformZoomOut = GetShortcut(node.Text); else if (text == (Configuration.Settings.Language.WaveForm.PlaySelection).Replace("&", string.Empty)) Configuration.Settings.Shortcuts.WaveformPlaySelection = GetShortcut(node.Text); + else if (text == (Configuration.Settings.Language.Settings.VerticalZoom).Replace("&", string.Empty)) + Configuration.Settings.Shortcuts.WaveformVerticalZoom = GetShortcut(node.Text); + } }