Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 3999)
+++ /CKEditor/trunk/CHANGES.html	(revision 4000)
@@ -208,4 +208,6 @@
 		<li><a href="http://dev.fckeditor.net/ticket/4058">#4058</a> : [FF] wysiwyg mode is sometimes not been activated.</li>
 		<li><a href="http://dev.fckeditor.net/ticket/4114">#4114</a> : [IE] RTE + IE6/IE7 Quirks = dialog mispositoned.</li>
+		<li><a href="http://dev.fckeditor.net/ticket/4122">#4122</a> : [IE] The image dialog 
+			was being rendered improperly when loading an image with long URL.</li>
 	</ul>
 	<h3>
Index: /CKEditor/trunk/_source/plugins/image/dialogs/image.js
===================================================================
--- /CKEditor/trunk/_source/plugins/image/dialogs/image.js	(revision 3999)
+++ /CKEditor/trunk/_source/plugins/image/dialogs/image.js	(revision 4000)
@@ -423,11 +423,16 @@
 												if ( type == IMAGE )
 												{
-													var dialog = this.getDialog();
-													var url = element.getAttribute( '_cke_saved_src' );
-													if ( !url )
-														url = element.getAttribute( 'src' );
-													dialog.dontResetSize = true;
-													this.setValue( url );		// And call this.onChange()
-													this.focus();
+													var url = element.getAttribute( '_cke_saved_src' ) || element.getAttribute( 'src' );
+													var field = this;
+
+													this.getDialog().dontResetSize = true;
+													
+													// In IE7 the dialog is being rendered improperly when loading
+													// an image with a long URL. So we need to delay it a bit. (#4122)
+													setTimeout( function()
+														{
+															field.setValue( url );		// And call this.onChange()
+															field.focus();
+														}, 0 );
 												}
 											},
