Author: hdu
Date: Mon Jun 18 15:04:55 2012
New Revision: 1351378
URL: http://svn.apache.org/viewvc?rev=1351378&view=rev
Log:
#c706125# fix overallocation on 64bit platforms
Modified:
incubator/ooo/trunk/main/vcl/source/gdi/sallayout.cxx
Modified: incubator/ooo/trunk/main/vcl/source/gdi/sallayout.cxx
URL:
http://svn.apache.org/viewvc/incubator/ooo/trunk/main/vcl/source/gdi/sallayout.cxx?rev=1351378&r1=1351377&r2=1351378&view=diff
==============================================================================
--- incubator/ooo/trunk/main/vcl/source/gdi/sallayout.cxx (original)
+++ incubator/ooo/trunk/main/vcl/source/gdi/sallayout.cxx Mon Jun 18 15:04:55
2012
@@ -1166,7 +1166,7 @@ void GenericSalLayout::ApplyDXArray( Imp
}
// calculate adjusted cluster widths
- sal_Int32* pNewGlyphWidths = (sal_Int32*)alloca( mnGlyphCount *
sizeof(long) );
+ sal_Int32* pNewGlyphWidths = (sal_Int32*)alloca( mnGlyphCount *
sizeof(sal_Int32) );
for( i = 0; i < mnGlyphCount; ++i )
pNewGlyphWidths[ i ] = 0;