mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 14:32:35 +01:00
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:
parent
b5f0bcf317
commit
80c417e93d
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user