Fixed crash in AudioVisualizer (in key down event)

This commit is contained in:
niksedk 2015-09-28 20:38:13 +02:00
parent f14a65de95
commit 71a4724269

View File

@ -1524,6 +1524,9 @@ namespace Nikse.SubtitleEdit.Controls
private void WaveformKeyDown(object sender, KeyEventArgs e) private void WaveformKeyDown(object sender, KeyEventArgs e)
{ {
if (_wavePeaks == null)
return;
if (e.Modifiers == Keys.None && e.KeyCode == Keys.Add) if (e.Modifiers == Keys.None && e.KeyCode == Keys.Add)
{ {
ZoomIn(); ZoomIn();