From cd3c44ae7cfa12225c628bf3e11de595647f7987 Mon Sep 17 00:00:00 2001 From: hartvig Date: Mon, 5 Sep 2011 06:39:17 -0200 Subject: [PATCH] Work items: 30446 --- components/editorControls/tinymce/tinyMCEImageHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/editorControls/tinymce/tinyMCEImageHelper.cs b/components/editorControls/tinymce/tinyMCEImageHelper.cs index 9deec46585..190d717b15 100644 --- a/components/editorControls/tinymce/tinyMCEImageHelper.cs +++ b/components/editorControls/tinymce/tinyMCEImageHelper.cs @@ -36,9 +36,9 @@ namespace umbraco.editorControls.tinymce ht.Add(attributeSet.Groups["attributeName"].Value.ToString().ToLower(), attributeSet.Groups["attributeValue"].Value.ToString()); if (attributeSet.Groups["attributeName"].Value.ToString().ToLower() == "width") - orgWidth = int.Parse(attributeSet.Groups["attributeValue"].Value.ToString()); + int.TryParse(attributeSet.Groups["attributeValue"].Value.ToString(), out orgWidth); else if (attributeSet.Groups["attributeName"].Value.ToString().ToLower() == "height") - orgHeight = int.Parse(attributeSet.Groups["attributeValue"].Value.ToString()); + int.TryParse(attributeSet.Groups["attributeValue"].Value.ToString(), out orgHeight); } // If rel attribute exists and if it's different from current sizing we should resize the image!