From fdbd829a0451df6faba39a3ce141f614d70c592b Mon Sep 17 00:00:00 2001 From: RKrom Date: Wed, 23 May 2012 04:57:19 +0000 Subject: [PATCH] Fixed problem with undo and missing language key git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1896 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Forms/ImageEditorForm.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Greenshot/Forms/ImageEditorForm.cs b/Greenshot/Forms/ImageEditorForm.cs index ab14f2e15..079649aa4 100644 --- a/Greenshot/Forms/ImageEditorForm.cs +++ b/Greenshot/Forms/ImageEditorForm.cs @@ -741,7 +741,9 @@ namespace Greenshot { this.undoToolStripMenuItem.Enabled = canUndo; string undoAction = ""; if (canUndo) { - undoAction = Language.GetString(surface.UndoActionKey); + if (surface.UndoActionKey != LangKey.none) { + undoAction = Language.GetString(surface.UndoActionKey); + } } string undoText = Language.GetFormattedString(LangKey.editor_undo, undoAction); this.btnUndo.Text = undoText;