Index: /FCKeditor/trunk/_whatsnew.html
===================================================================
--- /FCKeditor/trunk/_whatsnew.html	(revision 338)
+++ /FCKeditor/trunk/_whatsnew.html	(revision 339)
@@ -114,4 +114,7 @@
 		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/258">#258</a>] The Asp integration 
 			didn't pass boolean values in English, using instead the locale of the server and failing.</li>
+		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/487">#487</a>] If an image
+			with dimensions set as styles was opened with the image manager and then the dialog was
+			canceled the dimensions in the style were lost.</li>
 	</ul>
 	<h3>
Index: /FCKeditor/trunk/editor/dialog/fck_image/fck_image.js
===================================================================
--- /FCKeditor/trunk/editor/dialog/fck_image/fck_image.js	(revision 338)
+++ /FCKeditor/trunk/editor/dialog/fck_image/fck_image.js	(revision 339)
@@ -1,3 +1,3 @@
-﻿/*
+/*
  * FCKeditor - The text editor for Internet - http://www.fckeditor.net
  * Copyright (C) 2003-2007 Frederico Caldeira Knabben
@@ -144,4 +144,5 @@
 			iWidth = aMatchW[1] ;
 			oImage.style.width = '' ;
+			SetAttribute( oImage, 'width' , iWidth ) ;
 		}
 	}
@@ -154,4 +155,5 @@
 			iHeight = aMatchH[1] ;
 			oImage.style.height = '' ;
+			SetAttribute( oImage, 'height', iHeight ) ;
 		}
 	}
