Fix crash if Ctrl-C is pressed while no log is loaded

This commit is contained in:
baldurk
2015-04-25 13:19:37 +02:00
parent 1ba89e4b16
commit 7339be3c00
3 changed files with 8 additions and 0 deletions
+2
View File
@@ -2229,6 +2229,8 @@ namespace renderdocui.Windows
Clipboard.SetText(texStatusDim.Text + " | " + statusLabel.Text);
}
if (!m_Core.LogLoaded) return;
if (e.KeyCode == Keys.Up && m_PickedPoint.Y > 0)
{
m_PickedPoint = new Point(m_PickedPoint.X, m_PickedPoint.Y - 1);