summaryrefslogtreecommitdiff
path: root/vcl/generic/print
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-03-04 19:30:04 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-03-04 21:12:48 -0600
commit2ea4964b2e81a25125eec7ce3eb0b06b3883edf0 (patch)
tree92bba31d500bbd117ffc50264c90e78539125081 /vcl/generic/print
parent6bb68cae7c31918eff8386d5b52be0759386bb60 (diff)
help GlyphItems vector to be sized correctly up-front
Diffstat (limited to 'vcl/generic/print')
-rw-r--r--vcl/generic/print/genpspgraphics.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/generic/print/genpspgraphics.cxx b/vcl/generic/print/genpspgraphics.cxx
index b806c1d933ba..29c0610c53d1 100644
--- a/vcl/generic/print/genpspgraphics.cxx
+++ b/vcl/generic/print/genpspgraphics.cxx
@@ -616,6 +616,9 @@ bool PspFontLayout::LayoutText( ImplLayoutArgs& rArgs )
Point aNewPos( 0, 0 );
GlyphItem aPrevItem;
rtl_TextEncoding aFontEnc = mrPrinterGfx.GetFontMgr().getFontEncoding( mnFontID );
+
+ Reserve(rArgs.mnLength);
+
for(;;)
{
bool bRightToLeft;