Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > cd8ce32c919af60229fca1d7f792c60e > files > 43

openoffice.org-3.2.0-12.35.fc13.src.rpm

diff -r 03068afc23c6 sw/source/core/unocore/unosett.cxx
--- a/sw/source/core/unocore/unosett.cxx	Sun Apr 25 15:43:24 2010 +0100
+++ b/sw/source/core/unocore/unosett.cxx	Tue Apr 27 16:55:25 2010 +0100
@@ -1659,9 +1659,8 @@
 				aPropertyValues.Insert(pData, aPropertyValues.Count());
 			}
 		 	Size aSize = rFmt.GetGraphicSize();
-			aSize.Width() = TWIP_TO_MM100( aSize.Width() );
-			aSize.Height() = TWIP_TO_MM100( aSize.Height() );
-			pData = new PropValData((void*)&aSize, SW_PROP_NAME_STR(UNO_NAME_GRAPHIC_SIZE), ::getCppuType((const awt::Size*)0));
+		 	awt::Size aAwtSize(TWIP_TO_MM100(aSize.Width()), TWIP_TO_MM100(aSize.Height()));
+			pData = new PropValData((void*)&aAwtSize, SW_PROP_NAME_STR(UNO_NAME_GRAPHIC_SIZE), ::getCppuType((const awt::Size*)0));
 			aPropertyValues.Insert(pData, aPropertyValues.Count());
 
 			const SwFmtVertOrient* pOrient = rFmt.GetGraphicOrientation();