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
This commit is contained in:
niksedk 2011-10-27 07:49:13 +00:00
parent b5f0bcf317
commit 80c417e93d

View File

@ -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);
}
}